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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x624d28
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp esi, ebp
je 0x58f09a
mov eax, dword [esi + 0x1c]
cmp eax, ebp
je 0x58f09a
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x58f09a
mov al, byte [esi + 0x170]
test al, 4
je 0x58f09a
mov ebx, dword [sym.imp.USER32.dll_SetRectEmpty]
lea edi, [esi + 0xcc]
and al, 0xfb
push edi
mov byte [esi + 0x170], al
call ebx
lea eax, [esi + 0xdc]
push eax
call ebx
or eax, 0xffffffff
mov ecx, esi
mov dword [esi + 0xac], eax
mov dword [esi + 0xa8], eax
lea eax, [esp + 0x48]
push eax
call fcn.0058f120
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x58f09a
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
cmp edx, ebx
jle 0x58f09a
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x4c]
cmp eax, ecx
jle 0x58f09a
mov dword [edi], ebx
mov dword [edi + 4], ecx
mov ecx, esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
call fcn.0058d2f0
mov ecx, esi
mov dword [esp + 0x34], eax
call fcn.0058d300
push esi
lea ecx, [esp + 0xa0]
mov byte [esp + 0x16], al
call fcn.005e114e
mov ecx, esi
mov dword [esp + 0xc0], ebp
mov dword [esp + 0x14], ebp
call fcn.0058d350
mov edi, eax
mov ecx, esi
mov dword [esp + 0x40], edi
call fcn.0058d2a0
mov ecx, eax
mov ebx, eax
shr ecx, 2
and cl, 1
mov byte [esp + 0x23], cl
mov ecx, eax
shr ecx, 7
shr ebx, 0x15
and cl, 1
and bl, 1
test cl, cl
mov byte [esp + 0x2f], cl
mov byte [esp + 0x13], bl
je 0x58e63e
mov eax, 0xa
mov byte [esp + 0x23], 0
mov dword [esi + 0xc4], eax
mov dword [esi + 0xbc], eax
cmp edi, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
jle 0x58e9c8
jmp 0x58e654
mov dword [esi + 0xc4], ebp
mov dword [esi + 0xbc], ebp
jmp 0x58e62c
mov bl, byte [esp + 0x13]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
call fcn.005927c0
mov edi, eax
mov ecx, edi
call fcn.0058cca0
test al, al
jne 0x58e676
inc dword [esp + 0x1c]
jmp 0x58e9b4
mov al, byte [esp + 0x2f]
test al, al
je 0x58e935
test bl, bl
jne 0x58e880
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x9c]
lea eax, [esp + 0x80]
push edx
push eax
mov ecx, edi
call fcn.0058c8d0
mov ecx, edi
call fcn.0058cc30
mov ebp, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x74], ecx
mov ecx, edi
call fcn.0058cc40
mov ebx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0xb4], edx
je 0x58e6f4
mov ecx, edi
call fcn.0058ccc0
test al, al
jne 0x58e6f4
xor cl, cl
jmp 0x58e6f6
mov cl, 1
mov eax, dword [esp + 0x34]
cmp eax, 3
ja case.default.0x58e703
jmp dword [eax*4 + 0x58f0b4]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x24]
cmp edx, eax
jg 0x58e71d
mov dword [esp + 0x24], eax
xor edx, edx
test ebx, ebx
setle dl
dec edx
and edx, 3
sub eax, edx
mov edx, dword [esp + 0x28]
sub eax, ebp
cmp edx, eax
jg 0x58e738
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x58e74b
test cl, cl
je 0x58e74b
add dword [esi + 0xbc], 0x14
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jg case.default.0x58e703
jmp 0x58e7b3
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x24]
cmp edx, eax
jg 0x58e76f
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0xb4]
xor edx, edx
test edi, edi
setle dl
dec edx
and edx, 3
sub eax, edx
mov edx, dword [esp + 0x28]
sub eax, ebp
cmp edx, eax
jg 0x58e791
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x58e7a4
test cl, cl
je 0x58e7a4
add dword [esi + 0xbc], 0x14
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jg case.default.0x58e703
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
inc eax
inc edi
inc edx
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], edx
je 0x58e7f3
push eax
mov ecx, esi
call fcn.005927c0
mov edi, eax
mov ecx, edi
call fcn.0058ccc0
test al, al
je 0x58e6a3
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
mov edx, dword [esi + 0xbc]
xor ebp, ebp
lea eax, [ecx - 1]
imul eax, dword [esp + 0x28]
add eax, edi
add edx, eax
test ecx, ecx
mov dword [esi + 0xbc], edx
jle 0x58e9b4
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x98]
lea edx, [ecx + ebp]
mov ecx, esi
push edx
call fcn.005927c0
mov edi, eax
mov ecx, edi
call fcn.0058ccd0
cmp ebx, 3
ja case.default.0x58e841
jmp dword [ebx*4 + 0x58f0c4]
test al, al
je 0x58e855
mov eax, dword [esp + 0x24]
mov dword [edi + 0x58], eax
jmp case.default.0x58e841
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x58], ecx
jmp case.default.0x58e841
test al, al
je 0x58e86b
mov edx, dword [esp + 0x24]
mov dword [edi + 0x5c], edx
jmp case.default.0x58e841
mov eax, dword [esp + 0x28]
mov dword [edi + 0x5c], eax
mov eax, dword [esp + 0x30]
inc ebp
cmp ebp, eax
jl 0x58e821
jmp 0x58e9b4
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x88]
push ecx
push edx
mov ecx, edi
call fcn.0058c8d0
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x58e8ae
mov ecx, edi
call fcn.0058ccc0
test al, al
jne 0x58e8ae
xor dl, dl
jmp 0x58e8b0
mov dl, 1
mov eax, dword [esp + 0x34]
cmp eax, 3
ja case.default.0x58e8b9
jmp dword [eax*4 + 0x58f0d4]
mov eax, dword [esp + 0x88]
mov ecx, dword [esi + 0xbc]
add ecx, eax
mov eax, dword [esp + 0x8c]
cmp ebp, eax
mov dword [esi + 0xbc], ecx
jg 0x58e8e4
mov dword [esp + 0x14], eax
test ebx, ebx
je case.default.0x58e8b9
test dl, dl
je case.default.0x58e8b9
jmp 0x58e91c
mov ecx, dword [esp + 0x8c]
mov eax, dword [esi + 0xbc]
add eax, ecx
mov dword [esi + 0xbc], eax
mov ecx, eax
mov eax, dword [esp + 0x88]
cmp ebp, eax
jg 0x58e914
mov dword [esp + 0x14], eax
test ebx, ebx
je case.default.0x58e8b9
test dl, dl
je case.default.0x58e8b9
add ecx, 0x14
mov dword [esi + 0xbc], ecx
mov ecx, dword [esp + 0x1c]
inc ecx
inc ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
jmp 0x58e9b4
lea edx, [esp + 0x9c]
lea eax, [esp + 0x90]
push edx
push eax
mov ecx, edi
call fcn.0058c8d0
mov eax, dword [esp + 0x34]
cmp eax, 3
ja case.default.0x58e955
jmp dword [eax*4 + 0x58f0e4]
mov ecx, dword [esp + 0x90]
mov edx, dword [esi + 0xbc]
mov eax, dword [esp + 0x94]
add edx, ecx
cmp ebp, eax
mov dword [esi + 0xbc], edx
jg case.default.0x58e955
jmp 0x58e99e
mov edx, dword [esp + 0x94]
mov edi, dword [esi + 0xbc]
mov eax, dword [esp + 0x90]
add edi, edx
cmp ebp, eax
mov dword [esi + 0xbc], edi
jg case.default.0x58e955
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc ecx
inc eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jl 0x58e64c
mov ebp, dword [esp + 0x14]
mov edx, dword [esi]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
lea eax, [esp + 0x3c]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x114]
mov ecx, dword [esp + 0x44]
mov edx, dword [esi]
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x9c]
push ebp
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x12c]
mov al, byte [esp + 0x12]
test al, al
je 0x58ea21
mov edx, dword [esp + 0x58]
mov dword [esp + 0x30], edx
jmp 0x58ea29
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
push 2
push eax
mov ecx, esi
call dword [edx + 0x140]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
add edx, eax
xor eax, eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
cmp eax, 3
ja case.default.0x58ea65
mov ecx, eax
jmp dword [ecx*4 + 0x58f0f4]
cmp ebp, 0x14
jg 0x58ea76
mov ebp, 0x14
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0xd0]
add ecx, eax
mov eax, ecx
mov dword [esi + 0xd0], ecx
add ebp, eax
cmp ebp, edi
mov dword [esi + 0xd8], ebp
jl 0x58ea98
mov ebp, edi
cmp ebp, edi
mov dword [esi + 0xd8], ebp
jge 0x58eb28
mov ecx, dword [esp + 0x48]
mov dword [esi + 0xdc], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0xe0], ecx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], edi
mov dword [esi + 0xe0], ebp
jmp 0x58eb28
cmp ebp, 0x14
jg 0x58ead8
mov ebp, 0x14
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0xd8]
sub eax, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0xd8], eax
sub eax, ebp
cmp eax, ecx
mov dword [esi + 0xd0], eax
jg 0x58eafc
mov eax, ecx
cmp eax, ecx
mov dword [esi + 0xd0], eax
jle 0x58eb28
mov ebp, dword [esp + 0x48]
mov dword [esi + 0xdc], ebp
mov dword [esi + 0xe0], ecx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], edi
mov dword [esi + 0xe8], eax
mov ecx, dword [esp + 0x38]
mov ebp, dword [esi + 0xcc]
add ebp, ecx
mov ecx, dword [esi + 0xd4]
sub ecx, edx
mov edx, dword [esi + 0xbc]
mov dword [esi + 0xcc], ebp
mov ebp, ecx
mov dword [esi + 0xd4], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xcc]
sub edx, ebp
add eax, edx
test eax, eax
mov dword [esi + 0xc4], eax
jge case.default.0x58ea65
jmp 0x58ecb2
cmp ebp, 0x14
jg 0x58eb7b
mov ebp, 0x14
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi + 0xcc]
add eax, ecx
mov ecx, eax
mov dword [esi + 0xcc], eax
add ebp, ecx
cmp ebp, ebx
mov dword [esi + 0xd4], ebp
jl 0x58eb9d
mov ebp, ebx
cmp ebp, ebx
mov dword [esi + 0xd4], ebp
jge 0x58ebd0
mov edi, dword [esp + 0x48]
lea eax, [esi + 0xdc]
mov ebx, eax
mov dword [ebx], edi
mov edi, dword [esp + 0x4c]
mov dword [ebx + 4], edi
mov edi, dword [esp + 0x50]
mov dword [ebx + 8], edi
mov edi, dword [esp + 0x54]
mov dword [ebx + 0xc], edi
mov ebx, dword [esp + 0x50]
mov dword [eax], ebp
mov eax, dword [esp + 0x38]
mov ebp, dword [esi + 0xd0]
add ebp, eax
mov dword [esp + 0x28], ecx
mov dword [esi + 0xd0], ebp
mov ebp, dword [esi + 0xd8]
sub ebp, edx
mov dword [esi + 0xd8], ebp
mov ecx, dword [esi + 0xd0]
mov edx, ebp
sub ecx, edx
mov edx, dword [esi + 0xbc]
lea eax, [ecx + edx]
test eax, eax
mov dword [esi + 0xc4], eax
jge case.default.0x58ea65
jmp 0x58ecb2
cmp ebp, 0x14
jg 0x58ec24
mov ebp, 0x14
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0xd4]
sub ecx, eax
mov eax, ecx
mov dword [esi + 0xd4], ecx
mov ecx, dword [esp + 0x48]
sub eax, ebp
cmp eax, ecx
mov dword [esi + 0xcc], eax
jg 0x58ec4a
mov eax, ecx
cmp eax, ecx
mov dword [esi + 0xcc], eax
jle 0x58ec76
mov dword [esi + 0xdc], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esi + 0xe0], ecx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], edi
mov dword [esi + 0xe4], eax
mov ecx, dword [esp + 0x38]
mov ebp, dword [esi + 0xd0]
add ebp, ecx
mov ecx, dword [esi + 0xd8]
sub ecx, edx
mov dword [esi + 0xd0], ebp
mov edx, ebp
mov ebp, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xbc]
sub edx, ebp
mov dword [esi + 0xd8], ecx
add eax, edx
test eax, eax
mov dword [esi + 0xc4], eax
jge case.default.0x58ea65
mov dword [esi + 0xc4], 0
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xc0]
cmp ecx, eax
jle 0x58ecd2
mov dword [esi + 0xc0], eax
mov al, byte [esp + 0x23]
mov dword [esp + 0x14], 0x18
test al, al
mov byte [esp + 0x13], 0
je 0x58ed0b
mov ecx, dword [esi + 0xb8]
test ecx, ecx
jle 0x58ed0b
mov eax, dword [esi + 0xc4]
test eax, eax
jg 0x58ed5d
mov eax, dword [esi + 0xa0]
test ah, 0x20
jne 0x58ed5d
mov byte [esp + 0x13], 1
mov ebp, dword [esp + 0x14]
lea edx, [esi + 0xcc]
mov ecx, edx
mov eax, dword [ecx]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x64], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x68], eax
mov al, byte [esp + 0x12]
mov ecx, dword [ecx + 0xc]
test al, al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x6c], ecx
je 0x58ed94
mov edi, dword [edx + 4]
sub ebx, eax
mov eax, dword [edx + 0xc]
mov edx, dword [esp + 0x5c]
sub eax, edi
mov dword [esp + 0x68], ebx
sub eax, edx
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
xor eax, eax
jmp 0x58edae
mov al, byte [esp + 0x12]
test al, al
je 0x58ed73
mov eax, dword [esi + 0xd4]
mov edx, dword [esi + 0xcc]
jmp 0x58ed7f
mov eax, dword [esi + 0xd8]
mov edx, dword [esi + 0xd0]
sub eax, edx
cdq
idiv ecx
cmp eax, 0x18
jle 0x58ed0b
mov ebp, eax
mov dword [esp + 0x14], ebp
jmp 0x58ed0f
mov ebx, dword [esp + 0x58]
sub edi, eax
mov eax, dword [edx + 8]
mov dword [esp + 0x6c], edi
mov edi, dword [edx]
xor ecx, ecx
sub eax, edi
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
push ecx
lea edx, [esp + 0x64]
push eax
push edx
call edi
mov bl, byte [esp + 0x12]
test bl, bl
je 0x58edce
xor ecx, ecx
mov eax, 0xfffffffe
jmp 0x58edd5
mov ecx, 0xfffffffe
xor eax, eax
push ecx
push eax
lea eax, [esp + 0x68]
push eax
call edi
test bl, bl
je 0x58ee00
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
sub ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x60], ecx
add eax, edx
mov dword [esp + 0x6c], eax
jmp 0x58ee1c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
add edx, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x68], edx
sub eax, ecx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
push 2
lea ecx, [esp + 0x64]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x144]
mov cl, byte [esi + 0x170]
mov eax, dword [esp + 0x40]
xor ebx, ebx
or edx, 0xffffffff
and cl, 0xdf
cmp eax, ebx
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], edx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x170], cl
mov dword [esp + 0x1c], ebx
jle 0x58f05b
push ebx
mov ecx, esi
call fcn.005927c0
mov edi, eax
mov ecx, edi
call fcn.0058cca0
test al, al
je 0x58f047
mov cl, byte [edi + 0x84]
mov al, byte [esp + 0x23]
and cl, 0xfe
test al, al
mov byte [edi + 0x84], cl
je 0x58eef2
mov al, byte [esp + 0x13]
test al, al
jne 0x58eef2
mov al, byte [esp + 0x12]
test al, al
je 0x58eecd
cmp dword [edi + 0x58], ebp
jle 0x58eec8
mov cl, byte [esi + 0x170]
or cl, 0x20
mov byte [esi + 0x170], cl
mov al, byte [edi + 0x84]
or al, 1
mov byte [edi + 0x84], al
mov dword [edi + 0x58], ebp
jmp 0x58eef2
cmp dword [edi + 0x5c], ebp
jle 0x58eeef
mov cl, byte [esi + 0x170]
or cl, 0x20
mov byte [esi + 0x170], cl
mov al, byte [edi + 0x84]
or al, 1
mov byte [edi + 0x84], al
mov dword [edi + 0x5c], ebp
mov ecx, edi
call fcn.0058cc20
mov ebp, eax
xor edx, edx
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
mov dword [esp + 0x7c], eax
mov al, byte [esp + 0x2f]
test al, al
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
je 0x58ef2a
mov ecx, edi
call fcn.0058ccc0
test al, al
je 0x58ef2a
mov al, 1
jmp 0x58ef2c
xor al, al
mov ecx, dword [esp + 0x34]
cmp ecx, 3
ja case.default.0x58ef35
jmp dword [ecx*4 + 0x58f104]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x58ef51
test al, al
je 0x58ef51
mov ebx, dword [esp + 0x24]
add ebx, 0x14
jmp 0x58ef55
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x70]
push edx
push ebx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp]
jmp 0x58ef98
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x58ef80
test al, al
je 0x58ef80
mov ebx, dword [esp + 0x24]
add ebx, 0x14
jmp 0x58ef84
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 4]
add ebx, eax
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x70]
mov ecx, edi
push eax
call fcn.0058cc60
mov al, byte [esp + 0x12]
test al, al
je 0x58efc8
mov eax, dword [esi + 0xcc]
mov edx, dword [esi + 0xc0]
xor ecx, ecx
sub eax, edx
jmp 0x58efd8
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi + 0xc0]
sub ecx, eax
xor eax, eax
push ecx
lea ecx, [esp + 0x74]
push eax
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov al, byte [esp + 0x12]
test al, al
je 0x58f003
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov eax, dword [esi + 0xd4]
mov edi, dword [esi + 0xcc]
jmp 0x58f017
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
mov eax, dword [esi + 0xd8]
mov edi, dword [esi + 0xd0]
sub eax, edi
mov edi, dword [esi + 0xa8]
add eax, 8
test edi, edi
jge 0x58f030
test ecx, ecx
jl 0x58f030
mov dword [esi + 0xa8], ebx
cmp edx, eax
jg 0x58f03a
mov dword [esi + 0xac], ebx
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
inc ebx
cmp ebx, eax
mov dword [esp + 0x1c], ebx
jl 0x58ee66
or edx, 0xffffffff
mov eax, dword [esi + 0xa8]
test eax, eax
jl 0x58f07b
mov ecx, dword [esi + 0xac]
test ecx, ecx
jl 0x58f07b
cmp eax, ecx
jle 0x58f087
mov dword [esi + 0xac], eax
jmp 0x58f087
mov dword [esi + 0xac], edx
mov dword [esi + 0xa8], edx
lea ecx, [esp + 0x9c]
mov dword [esp + 0xc0], edx
call fcn.005e11c0
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret