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

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
sub esp, 0x84
mov esi, dword [esp + 0xa0]
mov dword [esp + eax + 0x44], 0
add eax, 4
cmp eax, 0x20
jb 0x584053
mov eax, dword [esp + 0x9c]
test esi, esi
lea ecx, [eax + esi*2]
je 0x584081
movzx edx, word [eax]
add eax, 2
add word [esp + edx*2 + 0x44], 1
cmp eax, ecx
jne 0x584071
movzx ebx, word [esp + 0x62]
test bx, bx
jne 0x584187
cmp word [esp + 0x60], 0
jne 0x584b61
cmp word [esp + 0x5e], 0
jne 0x584b6e
cmp word [esp + 0x5c], 0
jne 0x584b7b
cmp word [esp + 0x5a], 0
jne 0x584b88
cmp word [esp + 0x58], 0
jne 0x584b95
cmp word [esp + 0x56], 0
jne 0x584ba2
cmp word [esp + 0x54], 0
jne 0x584bbc
cmp word [esp + 0x52], 0
jne 0x584baf
cmp word [esp + 0x50], 0
jne 0x584be3
cmp word [esp + 0x4e], 0
jne 0x584bd6
cmp word [esp + 0x4c], 0
jne 0x584bc9
cmp word [esp + 0x4a], 0
jne 0x584c0a
cmp word [esp + 0x48], 0
jne 0x584bf0
cmp word [esp + 0x46], 0
jne 0x584a81
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa4]
xor ecx, ecx
mov eax, dword [eax]
lea edx, [eax + 4]
mov dword [ebx], edx
xor edx, edx
mov byte [eax], 0x40
mov word [eax + 2], dx
mov byte [eax + 1], 1
mov eax, dword [ebx]
lea edx, [eax + 4]
mov dword [ebx], edx
mov byte [eax], 0x40
mov byte [eax + 1], 1
mov word [eax + 2], cx
mov eax, dword [esp + 0xa8]
mov dword [eax], 1
xor eax, eax
add esp, 0x84
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], 0xf
nop
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x24]
mov eax, dword [eax]
cmp edi, eax
cmovbe eax, edi
cmp word [esp + 0x46], 0
mov dword [esp], eax
jne 0x584a9f
cmp edi, 2
je 0x584ac5
cmp word [esp + 0x48], 0
jne 0x584ac5
cmp edi, 3
je 0x584b2d
cmp word [esp + 0x4a], 0
jne 0x584b2d
cmp edi, 4
je 0x584b20
cmp word [esp + 0x4c], 0
jne 0x584b20
cmp edi, 5
je 0x584b13
cmp word [esp + 0x4e], 0
jne 0x584b13
cmp edi, 6
je 0x584b06
cmp word [esp + 0x50], 0
jne 0x584b06
cmp edi, 7
je 0x584af9
cmp word [esp + 0x52], 0
jne 0x584af9
cmp edi, 8
je 0x584aec
cmp word [esp + 0x54], 0
jne 0x584aec
cmp edi, 9
je 0x584adf
cmp word [esp + 0x56], 0
jne 0x584adf
cmp edi, 0xa
je 0x584ad2
cmp word [esp + 0x58], 0
jne 0x584ad2
cmp edi, 0xb
je 0x584b54
cmp word [esp + 0x5a], 0
jne 0x584b54
cmp edi, 0xc
je 0x584b47
cmp word [esp + 0x5c], 0
jne 0x584b47
cmp edi, 0xd
je 0x584b3a
cmp word [esp + 0x5e], 0
jne 0x584b3a
cmp edi, 0xf
jne 0x584bfd
cmp word [esp + 0x60], 1
sbb eax, eax
not eax
add eax, 0xf
mov dword [esp + 4], eax
movzx edx, word [esp + 0x46]
mov eax, 2
sub eax, edx
mov edi, edx
mov edx, eax
lea eax, [edx + edx]
movzx edx, word [esp + 0x48]
sub eax, edx
mov ecx, edx
js 0x584a11
movzx edx, word [esp + 0x4a]
add eax, eax
sub eax, edx
mov word [esp + 0xc], dx
js 0x584a11
movzx edx, word [esp + 0x4c]
add eax, eax
sub eax, edx
mov word [esp + 8], dx
js 0x584a11
movzx edx, word [esp + 0x4e]
add eax, eax
sub eax, edx
mov word [esp + 0x14], dx
js 0x584a11
movzx edx, word [esp + 0x50]
add eax, eax
sub eax, edx
mov word [esp + 0x10], dx
js 0x584a11
movzx edx, word [esp + 0x52]
add eax, eax
sub eax, edx
mov word [esp + 0x18], dx
js 0x584a11
movzx edx, word [esp + 0x54]
add eax, eax
sub eax, edx
mov word [esp + 0x20], dx
js 0x584a11
movzx edx, word [esp + 0x56]
add eax, eax
sub eax, edx
mov word [esp + 0x1c], dx
js 0x584a11
movzx edx, word [esp + 0x58]
add eax, eax
sub eax, edx
mov word [esp + 0x40], dx
js 0x584a11
movzx edx, word [esp + 0x5a]
add eax, eax
sub eax, edx
mov word [esp + 0x2c], dx
js 0x584a11
movzx edx, word [esp + 0x5c]
add eax, eax
sub eax, edx
mov word [esp + 0x28], dx
js 0x584a11
movzx edx, word [esp + 0x5e]
add eax, eax
sub eax, edx
mov word [esp + 0x30], dx
js 0x584a11
lea ebp, [eax + eax]
movzx eax, word [esp + 0x60]
sub ebp, eax
mov edx, eax
mov eax, ebp
js 0x584a11
add eax, eax
cmp eax, ebx
js 0x584a11
je 0x5843ff
mov ebp, dword [esp + 0x98]
test ebp, ebp
je 0x584a11
cmp dword [esp + 0x24], 1
jne 0x584a11
add ecx, edi
movzx eax, word [esp + 0x18]
xor ebx, ebx
mov word [esp + 0x6a], cx
add cx, word [esp + 0xc]
mov word [esp + 0x66], bx
mov word [esp + 0x68], di
mov word [esp + 0x6c], cx
add cx, word [esp + 8]
mov word [esp + 0x6e], cx
add cx, word [esp + 0x14]
mov word [esp + 0x70], cx
add cx, word [esp + 0x10]
add eax, ecx
mov word [esp + 0x72], cx
mov word [esp + 0x74], ax
add ax, word [esp + 0x20]
mov word [esp + 0x76], ax
add ax, word [esp + 0x1c]
mov word [esp + 0x78], ax
add ax, word [esp + 0x40]
mov word [esp + 0x7a], ax
add ax, word [esp + 0x2c]
mov word [esp + 0x7c], ax
add ax, word [esp + 0x28]
mov word [esp + 0x7e], ax
add ax, word [esp + 0x30]
mov word [esp + 0x80], ax
add eax, edx
mov word [esp + 0x82], ax
xor eax, eax
test esi, esi
je 0x5844c4
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0xac]
movzx edx, word [ebx + eax*2]
test dx, dx
je 0x5844bd
movzx ecx, word [esp + edx*2 + 0x64]
lea ebp, [ecx + 1]
mov word [edi + ecx*2], ax
mov word [esp + edx*2 + 0x64], bp
add eax, 1
cmp esi, eax
jne 0x5844a3
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x584a21
cmp dword [esp + 0x98], 1
jne 0x58498c
mov ebx, dword [esp + 4]
mov eax, dword [esp]
cmp ebx, eax
cmovae eax, ebx
mov ebx, dword [esp + 0x98]
mov ecx, eax
mov dword [esp + 0x1c], eax
shl ebx, cl
cmp ebx, 0x354
mov eax, ebx
ja 0x584a01
mov byte [esp + 0x43], 0
mov byte [esp + 0x42], 1
mov dword [esp + 0x2c], 0x101
mov dword [esp + 0x3c], 0x7243c0
mov dword [esp + 0x38], 0x724400
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x20], eax
xor edi, edi
sub eax, 1
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 0x34], eax
mov dword [esp + 8], edi
mov ebx, dword [ebx]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
lea esi, [esi]
movzx eax, byte [esp + 4]
mov edi, dword [esp + 0x2c]
xor ebx, ebx
sub al, byte [esp + 0xc]
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
lea edx, [eax + 1]
mov esi, eax
cmp edx, edi
jb 0x5845ad
cmp eax, edi
jb 0x584980
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
sub eax, edi
movzx ebx, byte [ebx + eax*2]
movzx esi, word [esi + eax*2]
mov ecx, dword [esp + 4]
sub ecx, dword [esp + 0xc]
mov edx, 1
mov eax, 1
shl edx, cl
movzx ecx, byte [esp + 0x10]
mov dword [esp], edx
shl eax, cl
movzx ecx, byte [esp + 0xc]
mov ebp, eax
mov dword [esp + 0x28], eax
lea eax, [edx*4]
mov edi, eax
mov eax, dword [esp + 8]
neg edi
shr eax, cl
mov ecx, ebp
add eax, ebp
mov ebp, dword [esp + 0x18]
sub eax, edx
lea eax, [ebp + eax*4]
mov ebp, ebx
movzx ebx, byte [esp + 0x40]
lea esi, [esi]
mov edx, ebp
mov byte [eax + 1], bl
mov word [eax + 2], si
mov byte [eax], dl
add eax, edi
sub ecx, dword [esp]
jne 0x584600
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test ebx, eax
je 0x58463a
mov ebp, ebx
lea esi, [esi]
shr eax, 1
test ebp, eax
jne 0x584630
mov dword [esp + 8], ebp
test eax, eax
je 0x584960
lea edx, [eax - 1]
and edx, dword [esp + 8]
add eax, edx
mov dword [esp + 8], eax
mov ebx, dword [esp + 4]
movzx eax, word [esp + ebx*2 + 0x44]
mov word [esp], ax
sub eax, 1
test ax, ax
mov word [esp + ebx*2 + 0x44], ax
jne 0x58468c
mov eax, dword [esp + 0x24]
cmp ebx, eax
je 0x584a3d
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x9c]
movzx eax, word [eax + 2]
movzx eax, word [ebx + eax*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x1c]
cmp eax, edi
jbe 0x584956
mov ebx, dword [esp + 0x34]
and ebx, dword [esp + 8]
cmp dword [esp + 0x30], ebx
je 0x584956
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x24]
test esi, esi
cmove esi, edi
mov edi, dword [esp + 0x28]
mov edx, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], edx
lea esi, [esi + edi*4]
mov edi, eax
sub edi, edx
mov dword [esp + 0x18], esi
mov ecx, edi
mov esi, eax
mov eax, 1
mov dword [esp + 0x10], edi
shl eax, cl
cmp esi, ebp
jae 0x5848d5
movzx edx, word [esp + esi*2 + 0x44]
sub eax, edx
test eax, eax
jle 0x5848d5
mov esi, dword [esp + 0xc]
lea edx, [edi + 1]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 2]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 3]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 4]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 5]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 6]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 7]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 8]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 9]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 0xa]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 0xb]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 0xc]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 0xd]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 0xe]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x584970
lea edx, [edi + 0xf]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x584970
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
mov ecx, edi
add ecx, 0x10
test eax, eax
cmovg edx, ecx
mov dword [esp + 0x10], edx
movzx ecx, byte [esp + 0x10]
mov eax, 1
shl eax, cl
add dword [esp + 0x20], eax
mov esi, dword [esp + 0x20]
cmp esi, 0x354
jbe 0x5848fc
cmp byte [esp + 0x42], 0
jne 0x584a01
cmp dword [esp + 0x20], 0x250
jbe 0x584911
cmp byte [esp + 0x43], 0
jne 0x584a01
mov eax, dword [esp + 0xa4]
movzx ecx, byte [esp + 0x10]
lea edx, [ebx*4]
mov dword [esp + 0x30], ebx
mov eax, dword [eax]
mov byte [eax + ebx*4], cl
mov eax, dword [esp + 0xa4]
movzx ecx, byte [esp + 0x1c]
mov eax, dword [eax]
mov byte [eax + edx + 1], cl
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
sub eax, ecx
sar eax, 2
mov word [ecx + edx + 2], ax
add dword [esp + 0x14], 2
jmp 0x584570
mov dword [esp + 8], 0
jmp 0x58464f
mov dword [esp + 0x10], edx
jmp 0x5848d5
xor esi, esi
mov ebx, 0x60
jmp 0x5845ad
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0x724340
mov dword [esp + 0x38], 0x724380
mov ebx, dword [esp + 4]
mov eax, dword [esp]
cmp ebx, eax
cmovae eax, ebx
mov ebx, eax
mov dword [esp + 0x1c], eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp dword [esp + 0x98], 1
sete byte [esp + 0x42]
cmp eax, 0x354
movzx ebx, byte [esp + 0x42]
jbe 0x5849dc
test bl, bl
jne 0x584a01
cmp dword [esp + 0x98], 2
sete byte [esp + 0x43]
cmp eax, 0x250
movzx ebx, byte [esp + 0x43]
jbe 0x58452c
test bl, bl
je 0x58452c
add esp, 0x84
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x84
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xac]
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jmp 0x5849a4
mov edi, dword [esp + 8]
test edi, edi
je 0x584a5d
mov eax, dword [esp + 0x18]
movzx ebx, byte [esp + 0x40]
xor edx, edx
lea eax, [eax + edi*4]
mov byte [eax], 0x40
mov byte [eax + 1], bl
mov word [eax + 2], dx
mov ebx, dword [esp + 0xa4]
mov eax, dword [esp + 0x20]
shl eax, 2
add dword [ebx], eax
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x1c]
mov dword [eax], ebx
xor eax, eax
jmp 0x58417c
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x24], 1
mov edx, dword [eax]
mov eax, 1
test edx, edx
cmove eax, edx
mov dword [esp], eax
movzx ecx, word [esp + 0x46]
mov edx, 2
mov eax, 0xffffffff
sub edx, ecx
mov edi, ecx
js 0x58417c
mov dword [esp + 4], 1
jmp 0x5842d7
mov dword [esp + 4], 2
jmp 0x5842c7
mov dword [esp + 4], 0xa
jmp 0x5842c7
mov dword [esp + 4], 9
jmp 0x5842c7
mov dword [esp + 4], 8
jmp 0x5842c7
mov dword [esp + 4], 7
jmp 0x5842c7
mov dword [esp + 4], 6
jmp 0x5842c7
mov dword [esp + 4], 5
jmp 0x5842c7
mov dword [esp + 4], 4
jmp 0x5842c7
mov dword [esp + 4], 3
jmp 0x5842c7
mov dword [esp + 4], 0xd
jmp 0x5842c7
mov dword [esp + 4], 0xc
jmp 0x5842c7
mov dword [esp + 4], 0xb
jmp 0x5842c7
mov dword [esp + 0x24], 0xe
jmp 0x584190
mov dword [esp + 0x24], 0xd
jmp 0x584190
mov dword [esp + 0x24], 0xc
jmp 0x584190
mov dword [esp + 0x24], 0xb
jmp 0x584190
mov dword [esp + 0x24], 0xa
jmp 0x584190
mov dword [esp + 0x24], 9
jmp 0x584190
mov dword [esp + 0x24], 7
jmp 0x584190
mov dword [esp + 0x24], 8
jmp 0x584190
mov dword [esp + 0x24], 4
jmp 0x584190
mov dword [esp + 0x24], 5
jmp 0x584190
mov dword [esp + 0x24], 6
jmp 0x584190
mov dword [esp + 0x24], 2
jmp 0x584190
mov dword [esp + 4], 0xe
jmp 0x5842c7
mov dword [esp + 0x24], 3
jmp 0x584190