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

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
push esi
mov esi, dword [esp + 0x4c]
cmp ebx, dword [esi + 0x90]
mov eax, dword [esi + 0x164]
push edi
mov dword [esp + 0x18], eax
jne 0x404ee3
lea ecx, [esi + 0x120]
mov dword [esp + 0x10], ecx
lea ebp, [esi + 0x124]
jmp 0x404ef0
mov ebp, dword [esi + 0x12c]
mov dword [esp + 0x10], ebp
add ebp, 4
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ebp
mov dword [eax], edx
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x58]
push ecx
push edi
push eax
push ebx
mov dword [esp + 0x68], eax
call edx
mov ecx, dword [esp + 0x68]
add eax, 5
add esp, 0x10
cmp eax, 0x12
mov dword [ebp], ecx
ja case.default.0x404f2d
jmp dword [eax*4 + 0x405a34]
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x30]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x60]
add eax, ecx
push eax
push ebx
call edx
movzx eax, ax
add esp, 0xc
test ax, ax
mov dword [esp + 0x24], eax
je 0x404f8a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x404f72
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 0x28]
push ecx
push edx
call eax
add esp, 0xc
jmp 0x4057af
cmp dword [esi + 0x50], 0
je 0x4057af
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
jmp 0x4057a7
mov eax, dword [ebx + 0x44]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
sub edi, eax
add eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, 0x50
call fcn.00402ed0
test eax, eax
mov dword [esp + 0x50], eax
je 0x40592f
mov edi, dword [esp + 0x18]
mov edx, eax
push 0
push edx
call fcn.00401a40
mov ebp, eax
mov eax, edi
mov ecx, dword [eax + 0x60]
add esp, 8
cmp byte [eax + 0x81], 0
mov dword [eax + 0x5c], ecx
je 0x404fff
mov edx, eax
cmp byte [edx + 0x82], 0
jne 0x404fff
test ebp, ebp
jne 0x405011
mov eax, dword [esi + 0x78]
test eax, eax
je 0x404f72
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 4]
push ebp
push ecx
push edx
call eax
add esp, 0xc
jmp 0x4057af
test ebp, ebp
je 0x4058e5
cmp byte [ebp + 0x22], 0
je 0x4058f2
cmp byte [ebp + 0x20], 0
jne 0x4058ff
cmp dword [ebp + 0x1c], 0
jne 0x40590c
cmp dword [ebp + 4], 0
je 0x40506b
cmp byte [esi + 0x134], 0
jne 0x405053
mov eax, dword [esi + 0x78]
test eax, eax
je 0x404f72
mov ecx, dword [ebp]
mov edx, dword [esi + 4]
push 0
push ecx
push edx
call eax
add esp, 0xc
jmp 0x4057af
push 0
push ebp
call fcn.00401660
add esp, 8
test eax, eax
jne 0x405a2b
jmp 0x4057af
cmp dword [esi + 0x70], 0
je 0x4050ba
mov edi, esi
mov byte [ebp + 0x20], 1
call fcn.00402940
test eax, eax
mov byte [ebp + 0x20], 0
je 0x40592f
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esi + 0x74]
push ecx
push eax
mov eax, dword [esi + 0x70]
push edx
call eax
add esp, 0x14
test eax, eax
je 0x405919
mov ecx, dword [esi + 0x1b0]
mov dword [esi + 0x1ac], ecx
jmp 0x4057af
cmp dword [esi + 0x50], 0
je 0x4057af
mov eax, dword [esp + 0x58]
jmp 0x4057a2
mov edi, dword [esi + 0x170]
test edi, edi
je 0x4050e1
mov eax, dword [edi]
mov dword [esi + 0x170], eax
jmp 0x405110
mov ecx, dword [esi + 0xc]
push 0x30
call ecx
mov edi, eax
add esp, 4
test edi, edi
je 0x40592f
mov edx, dword [esi + 0xc]
push 0x20
call edx
add esp, 4
test eax, eax
mov dword [edi + 0x24], eax
je 0x405926
add eax, 0x20
mov dword [edi + 0x28], eax
xor ecx, ecx
mov dword [edi + 0x2c], ecx
lea eax, [edi + 0x2c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x16c]
mov dword [edi], eax
mov dword [esi + 0x16c], edi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov ecx, dword [ebx + 0x44]
mov edx, dword [esp + 0x5c]
lea eax, [ecx + edx]
push eax
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x20]
push ebx
call eax
mov dword [edi + 8], eax
add dword [esi + 0x138], 1
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
add eax, ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x1c], ecx
mov edx, dword [edi + 0x28]
sub edx, 2
push edx
lea ecx, [esp + 0x20]
push ecx
push eax
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x40]
push ebx
call eax
mov ebp, dword [esp + 0x30]
sub ebp, dword [edi + 0x24]
mov ecx, dword [esp + 0x38]
add esp, 0x1c
sar ebp, 1
cmp dword [esp + 0x50], ecx
je 0x4051f9
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x28]
mov edx, dword [esi + 0x10]
sub eax, ecx
add eax, eax
push eax
push ecx
mov dword [esp + 0x30], eax
call edx
add esp, 8
test eax, eax
je 0x40592f
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], edx
lea eax, [eax + ebp*2]
mov dword [esp + 0x14], eax
mov ecx, dword [edi + 0x28]
mov eax, dword [esp + 0x1c]
sub ecx, 2
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [ebx + 0x40]
push eax
lea ecx, [esp + 0x5c]
push ecx
push ebx
call edx
mov ebp, dword [esp + 0x28]
sub ebp, dword [edi + 0x24]
mov eax, dword [esp + 0x30]
add esp, 0x14
sar ebp, 1
cmp dword [esp + 0x50], eax
jne 0x405193
mov ecx, dword [edi + 0x24]
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x18], ebp
lea ebp, [edi + 0xc]
mov dword [ebp], ecx
mov edx, dword [esp + 0x14]
push eax
mov word [edx], 0
mov ecx, dword [esp + 0x60]
push ebp
push ecx
push ebx
push esi
call fcn.00404590
add esp, 0x14
test eax, eax
jne 0x405a2b
mov eax, dword [esi + 0x34]
test eax, eax
je 0x405256
mov edx, dword [esi + 0x188]
mov ecx, dword [ebp]
push edx
mov edx, dword [esi + 4]
push ecx
push edx
call eax
add esp, 0xc
lea ecx, [esi + 0x1a0]
call fcn.00401da0
jmp 0x4057af
cmp dword [esi + 0x50], 0
je 0x40526d
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
call fcn.00401800
add esp, 4
lea ecx, [esi + 0x1a0]
call fcn.00401da0
jmp 0x4057af
mov ebp, dword [ebx + 0x44]
add ebp, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x20]
push ebp
push ebx
mov dword [esp + 0x24], 0
mov byte [esp + 0x58], 1
call ecx
mov edi, eax
add esp, 8
add edi, ebp
mov eax, ebp
lea ecx, [esi + 0x1a0]
call fcn.00402ed0
test eax, eax
mov dword [esp + 0x34], eax
je 0x40592f
mov edx, dword [esi + 0x1ac]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esi + 0x1b0], edx
mov edx, dword [esp + 0x64]
push edx
push ebx
push esi
call fcn.00404590
add esp, 0x14
test eax, eax
jne 0x405a2b
mov eax, dword [esi + 0x1ac]
mov edi, dword [esp + 0x34]
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x405311
mov ecx, dword [esi + 0x188]
mov edx, dword [esi + 4]
push ecx
push edi
push edx
call eax
add esp, 0xc
xor al, al
jmp 0x405315
mov al, byte [esp + 0x50]
cmp dword [esi + 0x38], 0
je 0x40533c
cmp dword [esi + 0x34], 0
je 0x40532d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x38]
push edi
push eax
call ecx
add esp, 8
jmp 0x405357
test al, al
je 0x405357
cmp dword [esi + 0x50], 0
je 0x405357
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
call fcn.00401800
add esp, 4
lea ecx, [esi + 0x1a0]
call fcn.00401da0
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4053a7
lea ebx, [ebx]
mov eax, dword [esi + 0x68]
test eax, eax
mov ebp, edi
je 0x405387
mov ecx, dword [edi]
mov edx, dword [ecx]
mov ecx, dword [esi + 4]
push edx
push ecx
call eax
add esp, 8
mov edx, dword [esi + 0x178]
lea eax, [edi + 4]
mov edi, dword [eax]
test edi, edi
mov dword [eax], edx
mov dword [esi + 0x178], ebp
mov eax, dword [ebp]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
jne 0x405370
cmp dword [esi + 0x138], 0
jne 0x4057af
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
push esi
call fcn.00404320
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edx, dword [esp + 0x54]
cmp dword [esi + 0x138], edx
je 0x405885
mov ebp, dword [esi + 0x16c]
mov eax, dword [ebp]
mov ecx, dword [esi + 0x170]
mov dword [esi + 0x16c], eax
mov dword [ebp], ecx
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x170], ebp
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x20]
lea edi, [eax + edx*2]
push edi
push ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x34], edi
call ecx
add esp, 8
cmp eax, dword [ebp + 8]
jne 0x405940
cmp eax, 4
mov edx, dword [ebp + 4]
mov ecx, edi
jb 0x405445
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x405449
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405431
test eax, eax
je 0x4054ae
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x405498
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4054aa
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x405498
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4054aa
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x405498
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4054aa
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x4054aa
test edi, edi
mov ebp, dword [esp + 0x50]
mov eax, 1
jg 0x4054b0
or eax, 0xffffffff
jmp 0x4054b0
mov ebp, dword [esp + 0x50]
xor eax, eax
test eax, eax
jne 0x40593c
add dword [esi + 0x138], 0xffffffff
cmp dword [esi + 0x38], eax
je 0x40554e
cmp byte [esi + 0xec], al
mov edx, dword [ebp + 0x10]
je 0x40553c
test edx, edx
je 0x40553c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
movzx ecx, word [edx]
test cx, cx
je 0x405501
jmp 0x4054f0
add edx, 2
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
jne 0x4054f0
cmp byte [esi + 0xed], 0
mov edx, dword [ebp + 0x14]
je 0x405537
test edx, edx
je 0x405537
mov cx, word [esi + 0x1d8]
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
je 0x405537
add edx, 2
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
jne 0x405526
mov word [eax], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x38]
push edx
push eax
call ecx
add esp, 8
jmp 0x405565
cmp dword [esi + 0x50], 0
je 0x405565
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
call fcn.00401800
add esp, 4
cmp dword [ebp + 0x2c], 0
je 0x4055ae
jmp 0x405570
mov eax, dword [esi + 0x68]
test eax, eax
mov edi, dword [ebp + 0x2c]
je 0x405588
mov ecx, dword [edi]
mov edx, dword [ecx]
mov ecx, dword [esi + 4]
push edx
push ecx
call eax
add esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [edx + 4]
mov dword [ebp + 0x2c], eax
mov ecx, dword [esi + 0x178]
mov dword [edi + 4], ecx
mov dword [esi + 0x178], edi
mov edx, dword [edi]
mov eax, dword [edi + 8]
mov dword [edx + 4], eax
cmp dword [ebp + 0x2c], 0
jne 0x405570
cmp dword [esi + 0x138], 0
je 0x4053b4
jmp 0x4057af
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebx + 0x2c]
push ecx
push ebx
call edx
add esp, 8
test eax, eax
jl 0x405953
cmp dword [esi + 0x3c], 0
je 0x4050ba
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.004118f0
mov ecx, dword [esi + 0x3c]
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x3c]
push edx
push eax
call ecx
add esp, 0x14
jmp 0x4057af
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x405626
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 0x54]
push ecx
push edx
mov dword [esp + 0x5c], 0xa
call eax
add esp, 0xc
jmp 0x4057af
cmp dword [esi + 0x50], 0
je 0x4057af
mov eax, dword [esp + 0x5c]
push eax
mov eax, ecx
jmp 0x4057a7
mov eax, dword [esi + 0x48]
test eax, eax
je 0x40564b
mov ecx, dword [esi + 4]
push ecx
call eax
jmp 0x40565d
cmp dword [esi + 0x50], 0
je 0x405660
mov edx, dword [esp + 0x5c]
push edx
mov eax, ecx
call fcn.00401800
add esp, 4
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
lea edx, [esp + 0x60]
push edi
push edx
mov eax, ebx
mov ecx, esi
call fcn.00402330
add esp, 0x10
test eax, eax
jne 0x405a2b
cmp dword [esp + 0x58], eax
jne 0x4057af
pop edi
mov dword [esi + 0x118], 0x4031f0
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x405626
cmp byte [ebx + 0x49], 0
je 0x4056cd
mov eax, dword [esp + 0x5c]
test al, 1
jne 0x4056cd
sub ecx, eax
sar ecx, 1
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call edi
add esp, 0xc
jmp 0x4057af
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x30]
push eax
mov dword [esp + 0x54], edx
lea edx, [esp + 0x54]
push edx
push ecx
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x68]
push eax
push ebx
call ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
mov dword [ebp], edx
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 4]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push edx
call edi
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
add esp, 0x20
cmp eax, ecx
je 0x4057af
mov edx, dword [esp + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
push edx
mov edx, dword [ebx + 0x40]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x68]
push ecx
push ebx
call edx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x64]
mov dword [ebp], eax
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 4]
sub ecx, eax
sar ecx, 1
push ecx
push eax
push edx
call edi
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
add esp, 0x20
cmp eax, ecx
jne 0x405716
jmp 0x4057af
push ecx
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, ebx
mov edx, esi
call fcn.00403d70
add esp, 8
test eax, eax
je 0x40592f
jmp 0x4057af
mov edx, dword [esp + 0x5c]
mov eax, ecx
push esi
mov ecx, ebx
call fcn.00403e40
add esp, 4
test eax, eax
je 0x40592f
jmp 0x4057af
cmp dword [esi + 0x50], 0
je 0x4057af
mov eax, ecx
mov edx, dword [esp + 0x5c]
push edx
call fcn.00401800
add esp, 4
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x1e0]
sub eax, 2
je 0x405a26
sub eax, 1
je 0x4057e5
mov ebp, dword [esp + 0x20]
jmp 0x404efe
cmp byte [esp + 0x68], 0
je 0x4057f5
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword [edx], ecx
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov dword [ebp], edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x405819
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 0x54]
push ecx
push edx
mov dword [esp + 0x5c], 0xa
call eax
add esp, 0xc
jmp 0x40582e
cmp dword [esi + 0x50], 0
je 0x40582e
mov eax, dword [esp + 0x5c]
push eax
mov eax, edi
call fcn.00401800
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4059fa
cmp dword [esi + 0x138], eax
jne 0x405885
mov ecx, dword [esp + 0x64]
mov dword [ecx], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
cmp byte [esp + 0x68], 0
je 0x40586d
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword [eax], edx
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x54]
test eax, eax
jle 0x4059fa
cmp dword [esi + 0x138], eax
je 0x4057e1
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword [eax], ecx
mov eax, 4
pop ebx
add esp, 0x3c
ret
cmp byte [esp + 0x68], 0
jne 0x4057e1
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3c
ret
cmp byte [esp + 0x68], 0
je 0x4058d8
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0xc
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0x15
pop ebx
add esp, 0x3c
ret
mov edx, dword [esi + 0x14]
push edi
call edx
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3c
ret
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x3c
ret
pop edi
pop esi
pop ebp
mov eax, 0x11
pop ebx
add esp, 0x3c
ret
cmp byte [esp + 0x68], 0
jne 0x4057e1
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4059d7
cmp byte [ebx + 0x49], 0
je 0x4059a0
mov eax, dword [esp + 0x5c]
test al, 1
jne 0x4059a0
mov edx, edi
sub edx, eax
sar edx, 1
push edx
push eax
mov eax, dword [esi + 4]
push eax
call ecx
add esp, 0xc
jmp 0x4059ec
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [ebx + 0x40]
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], ecx
push edi
lea ecx, [esp + 0x68]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esi + 4]
sub ecx, eax
sar ecx, 1
push ecx
push eax
mov eax, dword [esi + 0x3c]
push edx
call eax
add esp, 0x20
jmp 0x4059ec
cmp dword [esi + 0x50], 0
je 0x4059ec
mov ecx, dword [esp + 0x5c]
push ecx
mov eax, edi
call fcn.00401800
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x405a07
mov edx, dword [esp + 0x10]
mov dword [edx], edi
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x3c
ret
cmp dword [esi + 0x138], eax
je 0x405842
mov eax, dword [esp + 0x10]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov eax, 0xd
pop ebx
add esp, 0x3c
ret
mov eax, 0x23
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret