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

Disassembly:
push ebp
mov ebp, edx
xor edx, edx
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0xbc
lea ecx, [esp + 0x78]
call fcn.00554921
mov esi, eax
test eax, eax
je 0x584bc6
cmp eax, 0x508
jne 0x584bfc
mov byte [ebx + 0x32], 1
mov byte [ebx + 0x2b], 2
mov dword [ebp], 1
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x584c11
mov edx, ebp
mov eax, ebx
call fcn.0054ad51
test eax, eax
jne 0x584c11
cmp dword [ebx + 0x34], 0x2de218
jne 0x584cd1
cmp byte [ebx + 0x32], 0
je 0x584bfc
test esi, esi
jne 0x584d42
xor esi, esi
mov byte [ebx + 0x2b], 0
add esp, 0xbc
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [ebx + 0x32], 0
je 0x584c89
movzx eax, byte [ebx + 0x2c]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x584d21
cmp byte [ebx + 0x2b], 0
jne 0x584c46
mov eax, dword [ebx + 4]
mov ecx, 1
xor edx, edx
call fcn.0054af81
mov esi, eax
test eax, eax
jne 0x584d38
mov byte [ebx + 0x2c], 1
lea ecx, [esp + 0x78]
xor edx, edx
mov eax, ebx
call fcn.00554921
mov esi, eax
test eax, eax
je 0x584d69
cmp byte [ebx + 0x2b], 0
mov byte [ebx + 0x2c], 0
jne 0x584be8
mov eax, dword [ebx + 4]
mov ecx, 1
xor edx, edx
call fcn.0054b021
jmp 0x584be8
test byte [ebx + 0x2e], 2
je 0x584c17
cmp byte [ebx + 0x2b], 0
jne 0x584cc4
mov eax, dword [ebx + 4]
xor edx, edx
call fcn.0054af21
mov esi, eax
test eax, eax
jne 0x584d38
cmp byte [ebx + 0x2b], 0
jne 0x584cb9
mov eax, dword [ebx + 4]
xor edx, edx
call fcn.0054af51
cmp byte [ebx + 0x32], 0
mov esi, 0x108
jne 0x584d0c
mov esi, 0x108
jmp 0x584bfc
mov dword [esp + 0x10], 0x98bd88
mov esi, 0xe
mov dword [esp + 0xc], 0xf500
mov dword [esp + 8], 0x98e3a4
mov dword [esp + 4], 0x98cb21
mov dword [esp], 0xe
call fcn.00561091
cmp byte [ebx + 0x32], 0
je 0x584bfc
xor edx, edx
mov eax, ebx
call fcn.0054b051
mov byte [ebx + 0x32], 0
jmp 0x584bf8
mov byte [ebx + 0x2c], 1
lea ecx, [esp + 0x78]
xor edx, edx
mov eax, ebx
call fcn.00554921
mov esi, eax
test eax, eax
je 0x584d99
cmp byte [ebx + 0x32], 0
je 0x584bfc
xor edx, edx
mov eax, ebx
call fcn.0054b051
mov byte [ebx + 0x32], 0
cmp esi, 0x20a
jne 0x584bf8
mov esi, 0xffffffff
jmp 0x584bf8
mov edx, ebp
mov eax, ebx
call fcn.0054ad51
mov esi, eax
test eax, eax
jne 0x584dc9
cmp byte [ebx + 0x2b], 0
mov byte [ebx + 0x2c], 0
jne 0x584da8
mov eax, dword [ebx + 4]
mov ecx, 1
xor edx, edx
call fcn.0054b021
jmp 0x584da8
mov edx, ebp
mov eax, ebx
call fcn.0054ad51
mov esi, eax
test eax, eax
jne 0x584dc9
cmp dword [ebx + 0x34], 0x2de218
jne 0x584cd1
cmp byte [ebx + 0x32], 0
jne 0x584bf6
jmp 0x584bfc
movzx eax, byte [ebx + 0x2d]
lea edi, [eax + 1]
mov eax, 3
sub eax, edi
cmp byte [ebx + 0x2b], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], eax
jne 0x584dff
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
call fcn.0054af81
mov esi, eax
test eax, eax
jne 0x584f97
lea edi, [ebx + 0x38]
lea ecx, [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x34], 0
and edi, 0xfffffffc
mov dword [ebx + 0x60], 0
sub ecx, edi
add ecx, 0x30
shr ecx, 2
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x88]
mov eax, dword [ebx + 8]
mov edx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x18]
mov esi, eax
test eax, eax
jne 0x584f81
mov eax, 0x20
cmp eax, dword [esp + 0x88]
sbb esi, dword [esp + 0x8c]
jge 0x584fb1
mov eax, dword [ebx + 8]
lea edi, [esp + 0x90]
mov edx, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x20
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 8]
test eax, eax
jne 0x58509d
mov eax, dword [esp + 0x90]
bswap eax
mov edx, eax
and edx, 0xfffffffe
cmp edx, 0x377f0682
jne 0x584fb1
mov esi, dword [esp + 0x98]
bswap esi
lea edx, [esi - 1]
test edx, esi
jne 0x584fb1
lea edx, [esi - 0x200]
cmp edx, 0xfe00
ja 0x584fb1
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa4]
and eax, 1
mov dword [ebx + 0x24], esi
mov byte [ebx + 0x41], al
xor eax, 1
bswap edx
mov dword [ebx + 0x70], edx
mov edx, dword [esp + 0xa0]
movzx eax, al
mov dword [ebx + 0x58], ecx
mov ecx, 0x18
mov dword [ebx + 0x54], edx
lea edx, [ebx + 0x4c]
mov dword [esp + 4], edx
mov edx, edi
mov dword [esp], 0
call fcn.0053fb31
mov eax, dword [esp + 0xa8]
bswap eax
cmp dword [ebx + 0x4c], eax
jne 0x584fb1
mov eax, dword [esp + 0xac]
bswap eax
cmp dword [ebx + 0x50], eax
jne 0x584fb1
cmp dword [esp + 0x94], 0x18e22d00
je 0x5850ce
mov dword [esp + 0x10], 0x98bd88
mov esi, 0xe
mov dword [esp + 0xc], 0xf092
mov dword [esp + 8], 0x98e3a4
mov dword [esp + 4], 0x98cb21
mov dword [esp], 0xe
call fcn.00561091
lea esi, [esi]
nop
cmp byte [ebx + 0x2b], 0
jne 0x584f97
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
call fcn.0054b021
mov eax, dword [esp + 0x20]
mov dword [ebp], 1
test eax, eax
jne 0x584be8
jmp 0x584c61
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x50], eax
mov eax, ebx
call fcn.0054abf1
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x30], ebp
mov edi, dword [eax]
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x60], 0
mov dword [edi + 0x80], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x2c], edi
mov dword [edi + 0x64], 0
mov edi, 1
cmp byte [ebx + 0x2b], 0
lea ebp, [edi + 3]
jne 0x585020
mov ecx, 1
mov edx, ebp
call fcn.0054af81
mov ecx, eax
test eax, eax
jne 0x585056
mov eax, dword [ebx + 4]
lea esi, [edi + 1]
cmp edi, 1
je 0x5850a4
mov ecx, dword [esp + 0x2c]
mov dword [ecx + edi*4 + 0x64], 0xffffffff
xor ecx, ecx
cmp byte [ebx + 0x2b], 0
jne 0x58504a
mov ecx, 1
mov edx, ebp
call fcn.0054b021
xor ecx, ecx
cmp esi, 5
je 0x585060
mov eax, dword [ebx + 4]
mov edi, esi
jmp 0x585002
cmp eax, 5
jne 0x5850c3
lea esi, [edi + 1]
jmp 0x58504a
mov edx, dword [ebx + 0x48]
mov ebp, dword [esp + 0x30]
mov esi, ecx
test edx, edx
je 0x584f81
mov eax, dword [ebx + 0x6c]
mov dword [esp + 4], 0x98e3b8
mov dword [esp], 0x11b
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 8], eax
call fcn.00561091
jmp 0x584f81
mov eax, 7
mov esi, eax
jmp 0x584f81
mov ecx, dword [ebx + 0x44]
test ecx, ecx
je 0x585028
mov edi, dword [esp + 0x2c]
mov dword [edi + 0x68], ecx
cmp byte [ebx + 0x2b], 0
je 0x58503c
mov edi, esi
jmp 0x585002
mov ebp, dword [esp + 0x30]
mov esi, ecx
jmp 0x584f81
call fcn.00582201
test eax, eax
jne 0x585098
lea eax, [esi + 0x8018]
xor edx, edx
call fcn.00553481
mov dword [esp + 0x34], eax
test eax, eax
je 0x585098
mov edx, dword [esp + 0x88]
lea edi, [esi + 0x18]
add eax, 0x18
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x40], edi
sar edi, 0x1f
mov dword [esp + 0x44], eax
add eax, esi
add edx, 0xffffffe0
mov dword [esp + 0x54], edi
adc ecx, 0xffffffff
mov edi, esi
sar esi, 0x10
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x50]
and di, 0xff00
mov dword [esp], edx
mov edx, dword [esp + 0x54]
or edi, esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.0085d5b1
mov word [esp + 0x62], di
mov edx, dword [esp + 0x54]
mov dword [esp + 0x68], eax
lea eax, [eax + 0x21]
mov edi, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x30], 0
shr edi, 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x6c], edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x5c], ebp
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x68]
mov ebp, 1
mov eax, edi
shl eax, 0xc
lea edx, [eax + 0xfde]
cmp edx, ecx
cmova edx, ecx
mov dword [esp + 0x38], edx
test edi, edi
je 0x5851b0
lea ebp, [eax - 0x21]
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x7c]
mov eax, ebx
mov edx, edi
call fcn.00554921
test eax, eax
jne 0x58536f
lea eax, [edi*4]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x20]
mov dword [eax + edi*4], ecx
cmp dword [esp + 0x38], ebp
jb 0x585330
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
lea eax, [ebp - 1]
mov ecx, edi
imul ecx, eax
mul esi
add edx, ecx
add eax, 0x20
adc edx, 0
mov esi, eax
mov edi, edx
jmp 0x585281
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x80]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x84]
mov dword [esp], eax
mov eax, ebx
call fcn.005465f1
test eax, eax
je 0x5852ac
mov ecx, dword [esp + 0x80]
mov edx, ebp
mov eax, ebx
call fcn.00563a41
test eax, eax
jne 0x5852ac
mov eax, dword [esp + 0x84]
test eax, eax
je 0x58526c
mov dword [ebx + 0x48], eax
movzx eax, word [esp + 0x62]
mov dword [ebx + 0x44], ebp
mov word [ebx + 0x42], ax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x30], eax
add ebp, 1
add esi, dword [esp + 0x48]
adc edi, dword [esp + 0x4c]
cmp dword [esp + 0x38], ebp
jb 0x58532d
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x40]
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 8]
test eax, eax
je 0x585208
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [ebx + 0x20]
cmp dword [esp + 0x3c], 1
mov dword [eax + edi], esi
sbb eax, eax
and eax, 0x88
mov edx, 0x8000
add esi, eax
mov dword [esp + 0x64], ecx
sub edx, eax
add eax, dword [esp + 0x58]
mov dword [esp], esi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.0086e9f1
cmp dword [esp + 0x38], ebp
mov ecx, dword [esp + 0x64]
jae 0x585306
add dword [esp + 0x3c], 1
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x6c]
jbe 0x585188
mov ebp, dword [esp + 0x5c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov dword [esp], eax
call fcn.00547771
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x584fc1
mov esi, ecx
jmp 0x584f81
mov eax, dword [ebx + 0x20]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x64]
cmp dword [esp + 0x3c], 0
mov dword [eax + edi], esi
je 0x585348
xor ecx, ecx
xor eax, eax
jmp 0x5852c8
mov eax, dword [esp + 0x58]
add esi, 0x88
mov dword [esp + 8], 0x7f78
mov dword [esp], esi
add eax, 0x88
mov dword [esp + 4], eax
call fcn.0086e9f1
xor ecx, ecx
jmp 0x5852f3
mov ebp, dword [esp + 0x5c]
mov ecx, eax
jmp 0x58530a