Function at 0x474db0
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 0x474de3
lea ecx, [esi + 0x120]
mov dword [esp + 0x10], ecx
lea ebp, [esi + 0x124]
jmp 0x474df0
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.0x474e2d
jmp dword [eax*4 + 0x475934]
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 0x474e8a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x474e72
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 0x28]
push ecx
push edx
call eax
add esp, 0xc
jmp 0x4756af
cmp dword [esi + 0x50], 0
je 0x4756af
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
jmp 0x4756a7
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.00472dd0
test eax, eax
mov dword [esp + 0x50], eax
je 0x47582f
mov edi, dword [esp + 0x18]
mov edx, eax
push 0
push edx
call fcn.00471940
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 0x474eff
mov edx, eax
cmp byte [edx + 0x82], 0
jne 0x474eff
test ebp, ebp
jne 0x474f11
mov eax, dword [esi + 0x78]
test eax, eax
je 0x474e72
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 4]
push ebp
push ecx
push edx
call eax
add esp, 0xc
jmp 0x4756af
test ebp, ebp
je 0x4757e5
cmp byte [ebp + 0x22], 0
je 0x4757f2
cmp byte [ebp + 0x20], 0
jne 0x4757ff
cmp dword [ebp + 0x1c], 0
jne 0x47580c
cmp dword [ebp + 4], 0
je 0x474f6b
cmp byte [esi + 0x134], 0
jne 0x474f53
mov eax, dword [esi + 0x78]
test eax, eax
je 0x474e72
mov ecx, dword [ebp]
mov edx, dword [esi + 4]
push 0
push ecx
push edx
call eax
add esp, 0xc
jmp 0x4756af
push 0
push ebp
call fcn.00471570
add esp, 8
test eax, eax
jne 0x47592b
jmp 0x4756af
cmp dword [esi + 0x70], 0
je 0x474fba
mov edi, esi
mov byte [ebp + 0x20], 1
call fcn.00472840
test eax, eax
mov byte [ebp + 0x20], 0
je 0x47582f
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 0x475819
mov ecx, dword [esi + 0x1b0]
mov dword [esi + 0x1ac], ecx
jmp 0x4756af
cmp dword [esi + 0x50], 0
je 0x4756af
mov eax, dword [esp + 0x58]
jmp 0x4756a2
mov edi, dword [esi + 0x170]
test edi, edi
je 0x474fe1
mov eax, dword [edi]
mov dword [esi + 0x170], eax
jmp 0x475010
mov ecx, dword [esi + 0xc]
push 0x30
call ecx
mov edi, eax
add esp, 4
test edi, edi
je 0x47582f
mov edx, dword [esi + 0xc]
push 0x20
call edx
add esp, 4
test eax, eax
mov dword [edi + 0x24], eax
je 0x475826
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 0x4750f9
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 0x47582f
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 0x475093
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.00474490
add esp, 0x14
test eax, eax
jne 0x47592b
mov eax, dword [esi + 0x34]
test eax, eax
je 0x475156
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.00471ca0
jmp 0x4756af
cmp dword [esi + 0x50], 0
je 0x47516d
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
call fcn.00471700
add esp, 4
lea ecx, [esi + 0x1a0]
call fcn.00471ca0
jmp 0x4756af
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.00472dd0
test eax, eax
mov dword [esp + 0x34], eax
je 0x47582f
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.00474490
add esp, 0x14
test eax, eax
jne 0x47592b
mov eax, dword [esi + 0x1ac]
mov edi, dword [esp + 0x34]
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x475211
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 0x475215
mov al, byte [esp + 0x50]
cmp dword [esi + 0x38], 0
je 0x47523c
cmp dword [esi + 0x34], 0
je 0x47522d
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 0x475257
test al, al
je 0x475257
cmp dword [esi + 0x50], 0
je 0x475257
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
call fcn.00471700
add esp, 4
lea ecx, [esi + 0x1a0]
call fcn.00471ca0
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x4752a7
lea ebx, [ebx]
mov eax, dword [esi + 0x68]
test eax, eax
mov ebp, edi
je 0x475287
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 0x475270
cmp dword [esi + 0x138], 0
jne 0x4756af
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.00474220
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 0x475785
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 0x475840
cmp eax, 4
mov edx, dword [ebp + 4]
mov ecx, edi
jb 0x475345
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x475349
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x475331
test eax, eax
je 0x4753ae
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x475398
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4753aa
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x475398
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4753aa
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x475398
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x4753aa
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x4753aa
test edi, edi
mov ebp, dword [esp + 0x50]
mov eax, 1
jg 0x4753b0
or eax, 0xffffffff
jmp 0x4753b0
mov ebp, dword [esp + 0x50]
xor eax, eax
test eax, eax
jne 0x47583c
add dword [esi + 0x138], 0xffffffff
cmp dword [esi + 0x38], eax
je 0x47544e
cmp byte [esi + 0xec], al
mov edx, dword [ebp + 0x10]
je 0x47543c
test edx, edx
je 0x47543c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
movzx ecx, word [edx]
test cx, cx
je 0x475401
jmp 0x4753f0
add edx, 2
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
jne 0x4753f0
cmp byte [esi + 0xed], 0
mov edx, dword [ebp + 0x14]
je 0x475437
test edx, edx
je 0x475437
mov cx, word [esi + 0x1d8]
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
je 0x475437
add edx, 2
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
jne 0x475426
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 0x475465
cmp dword [esi + 0x50], 0
je 0x475465
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
call fcn.00471700
add esp, 4
cmp dword [ebp + 0x2c], 0
je 0x4754ae
jmp 0x475470
mov eax, dword [esi + 0x68]
test eax, eax
mov edi, dword [ebp + 0x2c]
je 0x475488
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 0x475470
cmp dword [esi + 0x138], 0
je 0x4752b4
jmp 0x4756af
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebx + 0x2c]
push ecx
push ebx
call edx
add esp, 8
test eax, eax
jl 0x475853
cmp dword [esi + 0x3c], 0
je 0x474fba
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.004817f0
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 0x4756af
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x475526
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 0x4756af
cmp dword [esi + 0x50], 0
je 0x4756af
mov eax, dword [esp + 0x5c]
push eax
mov eax, ecx
jmp 0x4756a7
mov eax, dword [esi + 0x48]
test eax, eax
je 0x47554b
mov ecx, dword [esi + 4]
push ecx
call eax
jmp 0x47555d
cmp dword [esi + 0x50], 0
je 0x475560
mov edx, dword [esp + 0x5c]
push edx
mov eax, ecx
call fcn.00471700
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.00472230
add esp, 0x10
test eax, eax
jne 0x47592b
cmp dword [esp + 0x58], eax
jne 0x4756af
pop edi
mov dword [esi + 0x118], 0x4730f0
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x475526
cmp byte [ebx + 0x49], 0
je 0x4755cd
mov eax, dword [esp + 0x5c]
test al, 1
jne 0x4755cd
sub ecx, eax
sar ecx, 1
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call edi
add esp, 0xc
jmp 0x4756af
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 0x4756af
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 0x475616
jmp 0x4756af
push ecx
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, ebx
mov edx, esi
call fcn.00473c70
add esp, 8
test eax, eax
je 0x47582f
jmp 0x4756af
mov edx, dword [esp + 0x5c]
mov eax, ecx
push esi
mov ecx, ebx
call fcn.00473d40
add esp, 4
test eax, eax
je 0x47582f
jmp 0x4756af
cmp dword [esi + 0x50], 0
je 0x4756af
mov eax, ecx
mov edx, dword [esp + 0x5c]
push edx
call fcn.00471700
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 0x475926
sub eax, 1
je 0x4756e5
mov ebp, dword [esp + 0x20]
jmp 0x474dfe
cmp byte [esp + 0x68], 0
je 0x4756f5
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 0x475719
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 0x47572e
cmp dword [esi + 0x50], 0
je 0x47572e
mov eax, dword [esp + 0x5c]
push eax
mov eax, edi
call fcn.00471700
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4758fa
cmp dword [esi + 0x138], eax
jne 0x475785
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 0x47576d
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 0x4758fa
cmp dword [esi + 0x138], eax
je 0x4756e1
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 0x4756e1
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3c
ret
cmp byte [esp + 0x68], 0
je 0x4757d8
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 0x4756e1
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4758d7
cmp byte [ebx + 0x49], 0
je 0x4758a0
mov eax, dword [esp + 0x5c]
test al, 1
jne 0x4758a0
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 0x4758ec
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 0x4758ec
cmp dword [esi + 0x50], 0
je 0x4758ec
mov ecx, dword [esp + 0x5c]
push ecx
mov eax, edi
call fcn.00471700
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x475907
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 0x475742
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