Function at 0x493970
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 0x493c17
cmp dword [edi + 0x214], eax
jne 0x493c17
cmp dword [esi + 0x44], eax
jne 0x493c17
mov ebx, dword [esp + 0x50]
push ebx
push edi
call fcn.00470cc0
add esp, 8
test eax, eax
jne 0x493c17
test byte [ebx + 0x2a], 0x10
jne 0x493c17
cmp dword [esp + 0x58], 0xa
jne 0x4939f8
cmp word [ebx + 0x20], bp
jl 0x4939f0
movzx eax, byte [ebx + 0x2b]
mov dword [esp + 0x58], eax
cmp eax, 0xa
jne 0x4939f8
mov dword [esp + 0x58], 2
mov ecx, dword [esi + 0x20]
cmp dword [ecx], 1
jne 0x493c17
cmp dword [ecx + 0x1c], ebp
jne 0x493c17
cmp dword [esi + 0x24], ebp
jne 0x493c17
cmp dword [esi + 0x30], ebp
jne 0x493c17
cmp dword [esi + 0x28], ebp
jne 0x493c17
cmp dword [esi + 0x3c], ebp
jne 0x493c17
cmp dword [esi + 0x34], ebp
jne 0x493c17
test byte [esi + 6], 1
jne 0x493c17
mov eax, dword [esi]
cmp dword [eax], 1
jne 0x493c17
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp byte [eax], 0x74
jne 0x493c17
lea eax, [ecx + 8]
push eax
push 0
push edi
call fcn.00461930
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x493c17
mov esi, dword [esp + 0x50]
cmp ebx, esi
je 0x493c17
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 0x493c17
test dl, 0x10
jne 0x493c17
cmp dword [ebx + 0xc], ebp
jne 0x493c17
movzx ecx, word [esi + 0x22]
cmp cx, word [ebx + 0x22]
jne 0x493c17
mov ax, word [esi + 0x20]
cmp ax, word [ebx + 0x20]
jne 0x493c17
movsx eax, cx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x40], eax
test eax, eax
jle 0x493bdf
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 0x493c17
mov esi, dword [edi + 8]
mov edx, dword [ebp + 8]
test esi, esi
jne 0x493b0e
xor ebx, ebx
test edx, edx
jmp 0x493b55
test edx, edx
je 0x493c17
mov bl, byte [esi]
test bl, bl
je 0x493b41
mov al, bl
sub esi, edx
movzx ecx, byte [edx]
mov bl, al
movzx eax, al
mov al, byte [eax + 0x4eb938]
cmp al, byte [ecx + 0x4eb938]
jne 0x493b41
mov al, byte [edx + esi + 1]
inc edx
mov bl, al
test al, al
jne 0x493b20
movzx ecx, byte [edx]
movzx eax, bl
xor ebx, ebx
mov al, byte [eax + 0x4eb938]
cmp al, byte [ecx + 0x4eb938]
sete bl
test ebx, ebx
je 0x493c17
cmp byte [edi + 0xc], 0
je 0x493b70
cmp byte [ebp + 0xc], 0
je 0x493c17
mov ebx, dword [esp + 0x54]
test ebx, ebx
jle 0x493bc0
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 0x493c17
test edx, edx
je 0x493bc0
mov al, byte [edx]
cmp al, byte [esi]
jne 0x493bb7
test al, al
je 0x493bb3
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x493bb7
add edx, 2
add esi, 2
test al, al
jne 0x493b97
xor eax, eax
jmp 0x493bbc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x493c17
inc ebx
add edi, 0x18
add ebp, 0x18
mov dword [esp + 0x54], ebx
cmp ebx, dword [esp + 0x40]
jl 0x493af2
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 0x493c31
nop dword [eax + eax]
cmp byte [edi + 0x32], 0
mov esi, dword [ebx + 8]
cmovne ebp, eax
mov dword [esp + 0x34], ebp
test esi, esi
je 0x493c17
push esi
push edi
call fcn.00493850
add esp, 8
test eax, eax
jne 0x493c21
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x493c02
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 0x493bf0
mov esi, dword [esp + 0x50]
mov ebp, dword [esi + 0x18]
test ebp, ebp
je 0x493c80
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x493c17
mov eax, dword [ebx]
cmp eax, dword [ebp]
jne 0x493c17
xor edi, edi
test eax, eax
jle 0x493c80
xor esi, esi
nop
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 4]
mov al, byte [ecx + esi + 0xc]
cmp al, byte [edx + esi + 0xc]
jne 0x493c17
push 0xffffffffffffffff
push dword [edx + esi]
push dword [ecx + esi]
call fcn.00456b80
add esp, 0xc
test eax, eax
jne 0x493c17
inc edi
add esi, 0x18
cmp edi, dword [ebx]
jl 0x493c50
mov esi, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x18]
test eax, 0x80000
je 0x493c94
cmp dword [esi + 0x10], 0
jne 0x493c17
test al, al
js 0x493c17
mov ecx, dword [esp + 0x1c]
mov ebp, 0xfff0bdc0
mov dword [esp + 0x20], ebp
mov ecx, dword [ecx + 0x40]
test ecx, ecx
je 0x493cd3
mov edx, dword [ebx + 0x14]
xor ebp, ebp
mov dword [esp + 0x20], ebp
test edx, edx
jle 0x493cd3
mov eax, dword [ebx + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x493ccf
inc ebp
add eax, 0x10
cmp ebp, edx
jl 0x493cc3
mov dword [esp + 0x20], ebp
mov ebx, dword [esp + 0x4c]
push ebx
call fcn.0045d470
push ebp
push ebx
mov edi, eax
call fcn.0044f7a0
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.00421190
mov edx, dword [esp + 0x64]
mov ebx, eax
push edx
call fcn.0045cb50
push edx
mov dword [esp + 0x48], eax
call fcn.0045cb50
push 0x37
push esi
push dword [esp + 0x84]
mov dword [esp + 0x44], eax
push dword [esp + 0x3c]
push edx
call fcn.00462850
mov eax, dword [esp + 0x64]
add esp, 0x34
test dword [eax + 0x18], 0x8000000
jne 0x493e38
cmp word [esi + 0x20], 0
jge 0x493d50
cmp dword [esi + 8], 0
jne 0x493d6d
cmp dword [esp + 0x34], 0
jne 0x493d6d
mov eax, dword [esp + 0x58]
cmp eax, 2
je 0x493e38
cmp eax, 1
je 0x493e38
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x493d93
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
je 0x493d90
mov esi, 1
jmp 0x493dca
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 0x493df6
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
je 0x493df2
mov dword [esp + 0x2c], 1
jmp 0x493e2a
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.0047e300
mov esi, dword [esp + 0x58]
add esp, 8
mov eax, dword [esp + 0x1c]
test byte [eax + 0x2a], 0x20
jne 0x49413d
push 0x36
push eax
push ebp
mov ebp, dword [esp + 0x20]
push ebp
push dword [esp + 0x5c]
call fcn.00462850
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 0x493e8c
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
je 0x493e85
mov dword [esp + 0x24], 1
jmp 0x493ebf
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 0x493f1f
mov esi, dword [esp + 0x18]
push esi
push ebp
push 0x67
push edi
call fcn.00475540
push esi
push 0
push dword [esp + 0x28]
mov ebp, eax
push 0x46
push edi
call fcn.00475560
push dword [esp + 0x74]
mov esi, eax
push dword [esp + 0x80]
push dword [esp + 0x78]
call fcn.0046b2e0
push esi
push edi
call fcn.0047e300
push dword [esp + 0x50]
push ebx
push dword [esp + 0x8c]
call fcn.00421210
mov esi, dword [esp + 0x94]
add esp, 0x44
jmp 0x493f3f
cmp dword [esi + 8], 0
push dword [esp + 0x18]
jne 0x493f31
push dword [esp + 0x14]
push 0x4a
jmp 0x493f34
push ebp
push 0x67
push edi
call fcn.00475540
mov ebp, eax
add esp, 0x10
mov ebx, dword [esp + 0x28]
push ebx
push dword [esp + 0x18]
push 0x66
push edi
call fcn.00475540
push dword [esp + 0x28]
push ebx
push dword [esp + 0x28]
push 0x4b
push edi
call fcn.00475560
push 0xb
push edi
call fcn.00475a00
mov edx, dword [edi + 4]
add esp, 0x2c
mov esi, dword [esi]
mov ecx, dword [edi]
test edx, edx
je 0x493fd3
cmp byte [ecx + 0x41], 0
jne 0x493fd3
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.00433490
add esp, 0xc
mov dword [ebx + 0x10], 0
test esi, esi
jne 0x493faa
mov byte [ebx + 1], 0
jmp 0x493fd3
cmp byte [esi], 0
mov eax, esi
je 0x493fb7
inc eax
cmp byte [eax], 0
jne 0x493fb1
sub eax, esi
push 0
and eax, 0x3fffffff
push eax
push esi
push dword [edi]
call fcn.004518e0
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.00475540
mov eax, dword [edi + 0x18]
add esp, 0x10
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x494003
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x494036
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 0x494050
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x494083
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 0x494476
nop word [eax + eax]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x54], 0
mov esi, dword [eax + 8]
test esi, esi
je 0x4940c5
push esi
push ebx
call fcn.00493850
add esp, 8
test eax, eax
jne 0x4940c5
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4940b0
push ebp
push dword [esi + 0x28]
push dword [esp + 0x1c]
push 0x36
push edi
call fcn.00475560
mov ebp, dword [esp + 0x60]
push esi
push ebp
call fcn.00480a60
push dword [esp + 0x78]
push dword [ebx + 0x28]
push dword [esp + 0x34]
push 0x37
push edi
call fcn.00475560
push ebx
push ebp
call fcn.00480a60
mov ecx, dword [edi + 4]
add esp, 0x38
test ecx, ecx
je 0x49410f
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 0x49416f
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
je 0x49416c
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x34], 1
jmp 0x4941ac
push dword [esi]
mov ebx, dword [esp + 0x50]
push 1
push dword [esi + 0x1c]
push dword [esp + 0x68]
push ebx
call fcn.00470990
mov eax, dword [esp + 0x30]
push dword [eax]
push 0
push dword [eax + 0x1c]
push ebp
push ebx
call fcn.00470990
add esp, 0x28
jmp 0x49408b
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 0x4941cb
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x4941fe
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 0x4942da
movzx ecx, word [esi + 0x30]
xor ebp, ebp
mov dword [esp + 0x3c], ecx
test ecx, ecx
je 0x49427c
mov eax, dword [esi + 0x20]
mov dword [esp + 0x38], eax
mov edx, dword [eax]
test edx, edx
je 0x49427c
mov esi, str.BINARY
mov bl, 0x42
sub esi, edx
movzx ecx, byte [edx]
movzx eax, bl
mov al, byte [eax + 0x4eb938]
cmp al, byte [ecx + 0x4eb938]
jne 0x494250
mov bl, byte [esi + edx + 1]
inc edx
test bl, bl
jne 0x494233
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x4eb938]
movzx eax, bl
movzx eax, byte [eax + 0x4eb938]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
jne 0x49427c
mov eax, dword [esp + 0x38]
inc ebp
add eax, 4
mov dword [esp + 0x38], eax
cmp ebp, ecx
jl 0x494224
cmp ebp, ecx
jne 0x4942da
mov eax, dword [edi + 0x18]
mov bl, 0x10
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x4942a1
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x4942de
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 0x4942e2
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 0x494301
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x494334
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 0x494345
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 0x494364
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x49439e
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 0x4943a2
mov ebx, dword [esp + 0x14]
mov edx, dword [edi + 0x20]
mov eax, dword [esp + 0x34]
cmp edx, eax
jbe 0x4943ba
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 0x4943e2
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x494415
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 0x49442f
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x49445f
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 0x4940a0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x494488
push eax
push edi
call fcn.0047e300
add esp, 8
push dword [esp + 0x18]
mov ebx, dword [esp + 0x50]
push ebx
call fcn.0046a990
push dword [esp + 0x30]
push ebx
call fcn.0046a990
mov ebx, dword [esp + 0x3c]
add esp, 0x10
test ebx, ebx
je 0x49456b
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
mov ecx, esi
cmp dword [eax + 0x54], esi
jg 0x4944ce
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x494505
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.0047e300
mov eax, dword [edi + 0x18]
add esp, 8
mov esi, dword [edi + 0x20]
cmp dword [eax + 0x54], esi
jg 0x49452d
push 1
push edi
call fcn.00436000
add esp, 8
test eax, eax
jne 0x493c17
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