Function at 0x493c90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], ebp
mov eax, dword [edi]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x24], eax
test esi, esi
je 0x493f37
cmp dword [edi + 0x214], eax
jne 0x493f37
cmp dword [esi + 0x44], eax
jne 0x493f37
mov ebx, dword [esp + 0x50]
push ebx
push edi
call fcn.00470b10
add esp, 8
test eax, eax
jne 0x493f37
test byte [ebx + 0x2a], 0x10
jne 0x493f37
cmp dword [esp + 0x58], 0xa
jne 0x493d18
cmp word [ebx + 0x20], bp
jl 0x493d10
movzx eax, byte [ebx + 0x2b]
mov dword [esp + 0x58], eax
cmp eax, 0xa
jne 0x493d18
mov dword [esp + 0x58], 2
mov ecx, dword [esi + 0x20]
cmp dword [ecx], 1
jne 0x493f37
cmp dword [ecx + 0x1c], ebp
jne 0x493f37
cmp dword [esi + 0x24], ebp
jne 0x493f37
cmp dword [esi + 0x30], ebp
jne 0x493f37
cmp dword [esi + 0x28], ebp
jne 0x493f37
cmp dword [esi + 0x3c], ebp
jne 0x493f37
cmp dword [esi + 0x34], ebp
jne 0x493f37
test byte [esi + 6], 1
jne 0x493f37
mov eax, dword [esi]
cmp dword [eax], 1
jne 0x493f37
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp byte [eax], 0x74
jne 0x493f37
lea eax, [ecx + 8]
push eax
push 0
push edi
call fcn.004617a0
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x493f37
mov esi, dword [esp + 0x50]
cmp ebx, esi
je 0x493f37
mov dl, byte [ebx + 0x2a]
movzx eax, byte [esi + 0x2a]
movzx ecx, dl
shr ecx, 5
shr eax, 5
not ecx
not eax
xor ecx, eax
test cl, 1
jne 0x493f37
test dl, 0x10
jne 0x493f37
cmp dword [ebx + 0xc], ebp
jne 0x493f37
movzx ecx, word [esi + 0x22]
cmp cx, word [ebx + 0x22]
jne 0x493f37
mov ax, word [esi + 0x20]
cmp ax, word [ebx + 0x20]
jne 0x493f37
movsx eax, cx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x40], eax
test eax, eax
jle 0x493eff
mov edi, dword [esi + 4]
mov ebp, dword [ebx + 4]
add edi, 8
add ebp, 8
mov al, byte [edi + 0xd]
cmp al, byte [ebp + 0xd]
jne 0x493f37
mov esi, dword [edi + 8]
mov edx, dword [ebp + 8]
test esi, esi
jne 0x493e2e
xor ebx, ebx
test edx, edx
jmp 0x493e75
test edx, edx
je 0x493f37
mov bl, byte [esi]
test bl, bl
je 0x493e61
mov al, bl
sub esi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x4ea938]
cmp al, byte [ecx + 0x4ea938]
jne 0x493e61
mov al, byte [edx + esi + 1]
inc edx
mov bl, al
test al, al
jne 0x493e40
movzx ecx, byte [edx]
movzx eax, bl
xor ebx, ebx
mov al, byte [eax + 0x4ea938]
cmp al, byte [ecx + 0x4ea938]
sete bl
test ebx, ebx
je 0x493f37
cmp byte [edi + 0xc], 0
je 0x493e90
cmp byte [ebp + 0xc], 0
je 0x493f37
mov ebx, dword [esp + 0x54]
test ebx, ebx
jle 0x493ee0
mov edx, dword [edi]
xor ecx, ecx
mov esi, dword [ebp]
test edx, edx
sete cl
xor eax, eax
test esi, esi
sete al
cmp ecx, eax
jne 0x493f37
test edx, edx
je 0x493ee0
mov al, byte [edx]
cmp al, byte [esi]
jne 0x493ed7
test al, al
je 0x493ed3
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x493ed7
add edx, 2
add esi, 2
test al, al
jne 0x493eb7
xor eax, eax
jmp 0x493edc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x493f37
inc ebx
add edi, 0x18
add ebp, 0x18
mov dword [esp + 0x54], ebx
cmp ebx, dword [esp + 0x40]
jl 0x493e12
mov esi, dword [esp + 0x50]
xor ebp, ebp
mov ebx, dword [esp + 0x1c]
mov edi, dword [esi + 8]
mov eax, 1
test edi, edi
je 0x493f51
jmp 0x493f10
cmp byte [edi + 0x32], 0
mov esi, dword [ebx + 8]
cmovne ebp, eax
mov dword [esp + 0x34], ebp
test esi, esi
je 0x493f37
push esi
push edi
call fcn.00493b70
add esp, 8
test eax, eax
jne 0x493f41
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x493f22
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x38
ret
mov edi, dword [edi + 0x14]
mov eax, 1
test edi, edi
jne 0x493f10
mov esi, dword [esp + 0x50]
mov ebp, dword [esi + 0x18]
test ebp, ebp
je 0x493fa0
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x493f37
mov eax, dword [ebx]
cmp eax, dword [ebp]
jne 0x493f37
xor edi, edi
test eax, eax
jle 0x493fa0
xor esi, esi
mov edi, edi
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 4]
mov al, byte [ecx + esi + 0xc]
cmp al, byte [edx + esi + 0xc]
jne 0x493f37
push 0xffffffffffffffff
push dword [edx + esi]
push dword [ecx + esi]
call fcn.004569c0
add esp, 0xc
test eax, eax
jne 0x493f37
inc edi
add esi, 0x18
cmp edi, dword [ebx]
jl 0x493f70
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x18]
test eax, 0x80000
je 0x493fb4
cmp dword [esi + 0x10], 0
jne 0x493f37
test al, al
js 0x493f37
mov ecx, dword [esp + 0x1c]
mov ebp, 0xfff0bdc0
mov dword [esp + 0x20], ebp
mov ecx, dword [ecx + 0x40]
test ecx, ecx
je 0x493ff3
mov edx, dword [ebx + 0x14]
xor ebp, ebp
mov dword [esp + 0x20], ebp
test edx, edx
jle 0x493ff3
mov eax, dword [ebx + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x493fef
inc ebp
add eax, 0x10
cmp ebp, edx
jl 0x493fe3
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0x4c]
push ebx
call fcn.0045d2c0
push ebp
push ebx
mov edi, eax
call fcn.0044f610
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x20], eax
inc eax
push esi
push dword [esp + 0x6c]
mov dword [esp + 0x24], eax
inc eax
push ebx
mov dword [ebx + 0x44], eax
call fcn.00421070
mov edx, dword [esp + 0x64]
mov ebx, eax
push edx
call fcn.0045c9a0
push edx
mov dword [esp + 0x48], eax
call fcn.0045c9a0
push 0x37
push esi
push dword [esp + 0x84]
mov dword [esp + 0x44], eax
push dword [esp + 0x3c]
push edx
call fcn.00462640
mov eax, dword [esp + 0x64]
add esp, 0x34
test dword [eax + 0x18], 0x8000000
jne 0x494158
cmp word [esi + 0x20], 0
jge 0x494070
cmp dword [esi + 8], 0
jne 0x49408d
cmp dword [esp + 0x34], 0
jne 0x49408d
mov eax, dword [esp + 0x58]
cmp eax, 2
je 0x494158
cmp eax, 1
je 0x494158
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x4940b3
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
je 0x4940b0
mov esi, 1
jmp 0x4940ea
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov dword [esp + 0x2c], ecx
cmp dword [eax + 0x54], ecx
jg 0x494116
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
je 0x494112
mov dword [esp + 0x2c], 1
jmp 0x49414a
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
inc dword [edi + 0x20]
mov word [eax + ecx*4], 0x10
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push esi
push edi
call fcn.0047e2a0
mov esi, dword [esp + 0x58]
add esp, 8
mov eax, dword [esp + 0x1c]
test byte [eax + 0x2a], 0x20
jne 0x49445d
push 0x36
push eax
push ebp
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x5c]
call fcn.00462640
mov eax, dword [edi + 0x18]
add esp, 0x14
mov edx, dword [edi + 0x20]
mov ecx, edx
mov dword [esp + 0x24], edx
cmp dword [eax + 0x54], edx
jg 0x4941ac
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
je 0x4941a5
mov dword [esp + 0x24], 1
jmp 0x4941df
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp word [esi + 0x20], 0
jl 0x49423f
mov esi, dword [esp + 0x18]
push esi
push ebp
push 0x67
push edi
call fcn.004752c0
push esi
push 0
push dword [esp + 0x28]
mov ebp, eax
push 0x46
push edi
call fcn.004752e0
push dword [esp + 0x74]
mov esi, eax
push dword [esp + 0x80]
push dword [esp + 0x78]
call fcn.0046b0e0
push esi
push edi
call fcn.0047e2a0
push dword [esp + 0x50]
push ebx
push dword [esp + 0x8c]
call fcn.004210f0
mov esi, dword [esp + 0x94]
add esp, 0x44
jmp 0x49425f
cmp dword [esi + 8], 0
push dword [esp + 0x18]
jne 0x494251
push dword [esp + 0x14]
push 0x4a
jmp 0x494254
push ebp
push 0x67
push edi
call fcn.004752c0
mov ebp, eax
add esp, 0x10
mov ebx, dword [esp + 0x28]
push ebx
push dword [esp + 0x18]
push 0x66
push edi
call fcn.004752c0
push dword [esp + 0x28]
push ebx
push dword [esp + 0x28]
push 0x4b
push edi
call fcn.004752e0
push 0xb
push edi
call fcn.00475780
mov edx, dword [edi + 4]
add esp, 0x2c
mov esi, dword [esi]
mov ecx, dword [edi]
test edx, edx
je 0x4942f3
cmp byte [ecx + 0x41], 0
jne 0x4942f3
mov eax, dword [edi + 0x20]
dec eax
lea eax, [eax + eax*4]
push dword [edx + eax*4 + 0x10]
lea ebx, [edx + eax*4]
movsx eax, byte [ebx + 1]
push eax
push ecx
call fcn.004332a0
add esp, 0xc
mov dword [ebx + 0x10], 0
test esi, esi
jne 0x4942ca
mov byte [ebx + 1], 0
jmp 0x4942f3
cmp byte [esi], 0
mov eax, esi
je 0x4942d7
inc eax
cmp byte [eax], 0
jne 0x4942d1
sub eax, esi
push 0
and eax, 0x3fffffff
push eax
push esi
push dword [edi]
call fcn.00451750
add esp, 0x10
mov dword [ebx + 0x10], eax
mov byte [ebx + 1], 0xff
push ebp
mov ebp, dword [esp + 0x18]
push ebp
push 9
push edi
call fcn.004752c0
mov eax, dword [edi + 0x18]
add esp, 0x10
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x494323
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x494356
mov ecx, dword [edi + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x494370
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x4943a3
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
lea edx, [ebp + 1]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
mov ebx, dword [esi + 8]
mov dword [esp + 0x40], ebx
test ebx, ebx
je 0x494796
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x54], 0
mov esi, dword [eax + 8]
test esi, esi
je 0x4943e5
push esi
push ebx
call fcn.00493b70
add esp, 8
test eax, eax
jne 0x4943e5
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4943d0
push ebp
push dword [esi + 0x28]
push dword [esp + 0x1c]
push 0x36
push edi
call fcn.004752e0
mov ebp, dword [esp + 0x60]
push esi
push ebp
call fcn.00480ab0
push dword [esp + 0x78]
push dword [ebx + 0x28]
push dword [esp + 0x34]
push 0x37
push edi
call fcn.004752e0
push ebx
push ebp
call fcn.00480ab0
mov ecx, dword [edi + 4]
add esp, 0x38
test ecx, ecx
je 0x49442f
mov eax, dword [edi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 1
mov eax, dword [edi + 0x18]
mov ebp, dword [edi + 0x20]
mov ecx, ebp
mov dword [esp + 0x34], ebp
cmp dword [eax + 0x54], ebp
jg 0x49448f
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
je 0x49448c
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x34], 1
jmp 0x4944cc
push dword [esi]
mov ebx, dword [esp + 0x50]
push 1
push dword [esi + 0x1c]
push dword [esp + 0x68]
push ebx
call fcn.004707e0
mov eax, dword [esp + 0x30]
push dword [eax]
push 0
push dword [eax + 0x1c]
push ebp
push ebx
call fcn.004707e0
add esp, 0x28
jmp 0x4943ab
mov ecx, dword [edi + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ebp*4]
mov eax, dword [edi + 4]
add ecx, ebp
mov ebp, dword [esp + 0x14]
mov word [eax + ecx*4], 0x6c
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x20]
mov ecx, ebx
cmp dword [eax + 0x54], ebx
jg 0x4944eb
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x49451e
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x65
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x30]
test dword [eax + 0x18], 0x8000000
je 0x4945fa
movzx ecx, word [esi + 0x30]
xor ebp, ebp
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x49459c
mov eax, dword [esi + 0x20]
mov dword [esp + 0x38], eax
mov edx, dword [eax]
test edx, edx
je 0x49459c
mov esi, str.BINARY
mov bl, 0x42
sub esi, edx
movzx ecx, byte [edx]
movzx eax, bl
mov al, byte [eax + 0x4ea938]
cmp al, byte [ecx + 0x4ea938]
jne 0x494570
mov bl, byte [esi + edx + 1]
inc edx
test bl, bl
jne 0x494553
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x4ea938]
movzx eax, bl
movzx eax, byte [eax + 0x4ea938]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
jne 0x49459c
mov eax, dword [esp + 0x38]
inc ebp
add eax, 4
mov dword [esp + 0x38], eax
cmp ebp, ecx
jl 0x494544
cmp ebp, ecx
jne 0x4945fa
mov eax, dword [edi + 0x18]
mov bl, 0x10
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x4945c1
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x4945fe
mov ecx, dword [edi + 0x20]
mov ebp, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x69
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0xffffffff
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x494602
mov bl, byte [esp + 0x54]
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x494621
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x494654
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x6e
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 1
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x494665
mov eax, dword [edi + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], bl
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x494684
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x4946be
mov ecx, dword [edi + 0x20]
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 9
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x34]
inc eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], 0
jmp 0x4946c2
mov ebx, dword [esp + 0x14]
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x34]
cmp edx, eax
jbe 0x4946da
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
lea ecx, [edx - 1]
mov dword [eax + 0x58], ecx
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x494702
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x494735
mov ecx, dword [edi + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x49474f
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x49477f
mov eax, dword [edi + 4]
lea ecx, [esi + esi*4]
inc dword [edi + 0x20]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebp
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x20]
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x40], ebx
test ebx, ebx
jne 0x4943c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4947a8
push eax
push edi
call fcn.0047e2a0
add esp, 8
push dword [esp + 0x18]
mov ebx, dword [esp + 0x50]
push ebx
call fcn.0046a780
push dword [esp + 0x30]
push ebx
call fcn.0046a780
mov ebx, dword [esp + 0x3c]
add esp, 0x10
test ebx, ebx
je 0x49488b
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x4947ee
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x494825
mov ecx, dword [edi + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x18
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push ebx
push edi
call fcn.0047e2a0
mov eax, dword [edi + 0x18]
add esp, 8
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x49484d
push 1
push edi
call fcn.00435e50
add esp, 8
test eax, eax
jne 0x493f37
inc dword [edi + 0x20]
lea ecx, [esi + esi*4]
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
xor eax, eax
pop ebx
add esp, 0x38
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x38
ret