Function at 0x5665f0
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 0x566623
lea ecx, [esi + 0x120]
mov dword [esp + 0x10], ecx
lea ebp, [esi + 0x124]
jmp 0x566630
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.0x56666d
jmp dword [eax*4 + 0x567174]
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 0x5666ca
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5666b2
mov edx, dword [esi + 4]
push 1
lea ecx, [esp + 0x28]
push ecx
push edx
call eax
add esp, 0xc
jmp 0x566eef
cmp dword [esi + 0x50], 0
je 0x566eef
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
jmp 0x566ee7
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.00564610
test eax, eax
mov dword [esp + 0x50], eax
je 0x56706f
mov edi, dword [esp + 0x18]
mov edx, eax
push 0
push edx
call fcn.00563180
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 0x56673f
mov edx, eax
cmp byte [edx + 0x82], 0
jne 0x56673f
test ebp, ebp
jne 0x566751
mov eax, dword [esi + 0x78]
test eax, eax
je 0x5666b2
mov ecx, dword [esp + 0x50]
mov edx, dword [esi + 4]
push ebp
push ecx
push edx
call eax
add esp, 0xc
jmp 0x566eef
test ebp, ebp
je 0x567025
cmp byte [ebp + 0x22], 0
je 0x567032
cmp byte [ebp + 0x20], 0
jne 0x56703f
cmp dword [ebp + 0x1c], 0
jne 0x56704c
cmp dword [ebp + 4], 0
je 0x5667ab
cmp byte [esi + 0x134], 0
jne 0x566793
mov eax, dword [esi + 0x78]
test eax, eax
je 0x5666b2
mov ecx, dword [ebp]
mov edx, dword [esi + 4]
push 0
push ecx
push edx
call eax
add esp, 0xc
jmp 0x566eef
push 0
push ebp
call fcn.00562da0
add esp, 8
test eax, eax
jne 0x56716b
jmp 0x566eef
cmp dword [esi + 0x70], 0
je 0x5667fa
mov edi, esi
mov byte [ebp + 0x20], 1
call fcn.00564080
test eax, eax
mov byte [ebp + 0x20], 0
je 0x56706f
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 0x567059
mov ecx, dword [esi + 0x1b0]
mov dword [esi + 0x1ac], ecx
jmp 0x566eef
cmp dword [esi + 0x50], 0
je 0x566eef
mov eax, dword [esp + 0x58]
jmp 0x566ee2
mov edi, dword [esi + 0x170]
test edi, edi
je 0x566821
mov eax, dword [edi]
mov dword [esi + 0x170], eax
jmp 0x566850
mov ecx, dword [esi + 0xc]
push 0x30
call ecx
mov edi, eax
add esp, 4
test edi, edi
je 0x56706f
mov edx, dword [esi + 0xc]
push 0x20
call edx
add esp, 4
test eax, eax
mov dword [edi + 0x24], eax
je 0x567066
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 0x566939
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 0x56706f
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 0x5668d3
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.00565cd0
add esp, 0x14
test eax, eax
jne 0x56716b
mov eax, dword [esi + 0x34]
test eax, eax
je 0x566996
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.005634e0
jmp 0x566eef
cmp dword [esi + 0x50], 0
je 0x5669ad
mov eax, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
call fcn.00562f40
add esp, 4
lea ecx, [esi + 0x1a0]
call fcn.005634e0
jmp 0x566eef
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.00564610
test eax, eax
mov dword [esp + 0x34], eax
je 0x56706f
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.00565cd0
add esp, 0x14
test eax, eax
jne 0x56716b
mov eax, dword [esi + 0x1ac]
mov edi, dword [esp + 0x34]
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x34]
test eax, eax
je 0x566a51
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 0x566a55
mov al, byte [esp + 0x50]
cmp dword [esi + 0x38], 0
je 0x566a7c
cmp dword [esi + 0x34], 0
je 0x566a6d
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 0x566a97
test al, al
je 0x566a97
cmp dword [esi + 0x50], 0
je 0x566a97
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
call fcn.00562f40
add esp, 4
lea ecx, [esi + 0x1a0]
call fcn.005634e0
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x566ae7
lea ebx, [ebx]
mov eax, dword [esi + 0x68]
test eax, eax
mov ebp, edi
je 0x566ac7
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 0x566ab0
cmp dword [esi + 0x138], 0
jne 0x566eef
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.00565a60
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 0x566fc5
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 0x567080
cmp eax, 4
mov edx, dword [ebp + 4]
mov ecx, edi
jb 0x566b85
mov edi, dword [edx]
cmp edi, dword [ecx]
jne 0x566b89
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x566b71
test eax, eax
je 0x566bee
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x566bd8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x566bea
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x566bd8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x566bea
movzx edi, byte [edx]
movzx ebp, byte [ecx]
sub edi, ebp
jne 0x566bd8
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x566bea
movzx edi, byte [edx]
movzx edx, byte [ecx]
sub edi, edx
je 0x566bea
test edi, edi
mov ebp, dword [esp + 0x50]
mov eax, 1
jg 0x566bf0
or eax, 0xffffffff
jmp 0x566bf0
mov ebp, dword [esp + 0x50]
xor eax, eax
test eax, eax
jne 0x56707c
add dword [esi + 0x138], 0xffffffff
cmp dword [esi + 0x38], eax
je 0x566c8e
cmp byte [esi + 0xec], al
mov edx, dword [ebp + 0x10]
je 0x566c7c
test edx, edx
je 0x566c7c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
movzx ecx, word [edx]
test cx, cx
je 0x566c41
jmp 0x566c30
add edx, 2
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
jne 0x566c30
cmp byte [esi + 0xed], 0
mov edx, dword [ebp + 0x14]
je 0x566c77
test edx, edx
je 0x566c77
mov cx, word [esi + 0x1d8]
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
je 0x566c77
add edx, 2
mov word [eax], cx
movzx ecx, word [edx]
add eax, 2
test cx, cx
jne 0x566c66
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 0x566ca5
cmp dword [esi + 0x50], 0
je 0x566ca5
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push edx
call fcn.00562f40
add esp, 4
cmp dword [ebp + 0x2c], 0
je 0x566cee
jmp 0x566cb0
mov eax, dword [esi + 0x68]
test eax, eax
mov edi, dword [ebp + 0x2c]
je 0x566cc8
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 0x566cb0
cmp dword [esi + 0x138], 0
je 0x566af4
jmp 0x566eef
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebx + 0x2c]
push ecx
push ebx
call edx
add esp, 8
test eax, eax
jl 0x567093
cmp dword [esi + 0x3c], 0
je 0x5667fa
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.00573040
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 0x566eef
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x566d66
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 0x566eef
cmp dword [esi + 0x50], 0
je 0x566eef
mov eax, dword [esp + 0x5c]
push eax
mov eax, ecx
jmp 0x566ee7
mov eax, dword [esi + 0x48]
test eax, eax
je 0x566d8b
mov ecx, dword [esi + 4]
push ecx
call eax
jmp 0x566d9d
cmp dword [esi + 0x50], 0
je 0x566da0
mov edx, dword [esp + 0x5c]
push edx
mov eax, ecx
call fcn.00562f40
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.00563a70
add esp, 0x10
test eax, eax
jne 0x56716b
cmp dword [esp + 0x58], eax
jne 0x566eef
pop edi
mov dword [esi + 0x118], 0x564930
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x566d66
cmp byte [ebx + 0x49], 0
je 0x566e0d
mov eax, dword [esp + 0x5c]
test al, 1
jne 0x566e0d
sub ecx, eax
sar ecx, 1
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call edi
add esp, 0xc
jmp 0x566eef
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 0x566eef
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 0x566e56
jmp 0x566eef
push ecx
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, ebx
mov edx, esi
call fcn.005654b0
add esp, 8
test eax, eax
je 0x56706f
jmp 0x566eef
mov edx, dword [esp + 0x5c]
mov eax, ecx
push esi
mov ecx, ebx
call fcn.00565580
add esp, 4
test eax, eax
je 0x56706f
jmp 0x566eef
cmp dword [esi + 0x50], 0
je 0x566eef
mov eax, ecx
mov edx, dword [esp + 0x5c]
push edx
call fcn.00562f40
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 0x567166
sub eax, 1
je 0x566f25
mov ebp, dword [esp + 0x20]
jmp 0x56663e
cmp byte [esp + 0x68], 0
je 0x566f35
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 0x566f59
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 0x566f6e
cmp dword [esi + 0x50], 0
je 0x566f6e
mov eax, dword [esp + 0x5c]
push eax
mov eax, edi
call fcn.00562f40
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
je 0x56713a
cmp dword [esi + 0x138], eax
jne 0x566fc5
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 0x566fad
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 0x56713a
cmp dword [esi + 0x138], eax
je 0x566f21
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 0x566f21
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x3c
ret
cmp byte [esp + 0x68], 0
je 0x567018
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 0x566f21
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x567117
cmp byte [ebx + 0x49], 0
je 0x5670e0
mov eax, dword [esp + 0x5c]
test al, 1
jne 0x5670e0
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 0x56712c
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 0x56712c
cmp dword [esi + 0x50], 0
je 0x56712c
mov ecx, dword [esp + 0x5c]
push ecx
mov eax, edi
call fcn.00562f40
add esp, 4
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x567147
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 0x566f82
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