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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5813b6
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x58139a
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x580748]
call fcn.00408624
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 0
je 0x580d48
push ebp
lea eax, [ebp - 0x28]
mov edx, 0x5813d0
call fcn.005807c4
pop ecx
push ebp
lea eax, [ebp - 0x3c]
mov edx, 0x5813f4
call fcn.005807c4
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 1
jne 0x580d48
push ebp
lea eax, [ebp - 0x30]
mov edx, 0x581418
call fcn.005807c4
pop ecx
push ebp
lea eax, [ebp - 0x2c]
mov edx, 0x581438
call fcn.005807c4
pop ecx
push ebp
lea eax, [ebp - 0x34]
mov edx, 0x581458
call fcn.005807c4
pop ecx
push ebp
lea eax, [ebp - 0x38]
mov edx, 0x581478
call fcn.005807c4
pop ecx
push ebp
lea eax, [ebp - 0x40]
mov edx, 0x581498
call fcn.005807c4
pop ecx
push ebp
lea eax, [ebp - 0x44]
mov edx, 0x5814b8
call fcn.005807c4
pop ecx
push ebp
lea eax, [ebp - 0x48]
mov edx, 0x5814d8
call fcn.005807c4
pop ecx
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x138]
test ebx, ebx
je 0x580e15
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
dec eax
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x138]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jl 0x580e15
inc ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x138]
mov edx, dword [ebp - 0x20]
call fcn.0045c128
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x18]
test edi, edi
jl 0x580e09
inc edi
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax]
movzx eax, byte [ebx + 2]
mov byte [ebp - 0x24], al
movzx eax, byte [ebx + 1]
mov byte [ebp - 0x23], al
movzx eax, byte [ebx]
mov byte [ebp - 0x22], al
cmp dword [ebp - 0x24], 0xff00ff
je 0x580e03
movzx eax, byte [ebp - 0x24]
cmp al, byte [ebp - 0x23]
jne 0x580de2
cmp al, byte [ebp - 0x22]
je 0x580e03
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.00514bfc
mov dword [ebp - 0x24], eax
movzx eax, byte [ebp - 0x24]
mov byte [ebx + 2], al
movzx eax, byte [ebp - 0x23]
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0x22]
mov byte [ebx], al
inc dword [ebp - 0x1c]
dec edi
jne 0x580dab
inc dword [ebp - 0x20]
dec dword [ebp - 0x4c]
jne 0x580d88
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 0
je 0x580e8f
push ebp
lea eax, [ebp - 0x28]
call fcn.00580bb8
pop ecx
push ebp
lea eax, [ebp - 0x3c]
call fcn.00580bb8
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 1
jne 0x580e8f
push ebp
lea eax, [ebp - 0x30]
call fcn.00580bb8
pop ecx
push ebp
lea eax, [ebp - 0x2c]
call fcn.00580bb8
pop ecx
push ebp
lea eax, [ebp - 0x34]
call fcn.00580bb8
pop ecx
push ebp
lea eax, [ebp - 0x38]
call fcn.00580bb8
pop ecx
push ebp
lea eax, [ebp - 0x40]
call fcn.00580bb8
pop ecx
push ebp
lea eax, [ebp - 0x44]
call fcn.00580bb8
pop ecx
push ebp
lea eax, [ebp - 0x48]
call fcn.00580bb8
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x94]
call fcn.0040845c
dec eax
test eax, eax
jl 0x5810cf
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0xc], 0
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
cmp dword [edx + eax*4], 0
je 0x5810c3
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
cmp word [eax + 0x4a], 0
je 0x580f15
mov eax, dword [ebp - 4]
call fcn.0040845c
dec eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x1c]
test edi, edi
jl 0x580f0b
inc edi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
cmp eax, dword [ebp - 0xc]
jne 0x580f07
mov dword [ebp - 0x20], 1
jmp 0x580f0b
inc ebx
dec edi
jne 0x580ef3
cmp dword [ebp - 0x20], 1
je 0x5810c3
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
call dword [edx + 0x24]
mov ebx, eax
dec ebx
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [eax]
call dword [edx + 0x30]
dec eax
mov dword [ebp - 0x18], eax
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
call fcn.0045c0a4
cmp al, 7
jne 0x58100e
mov edi, ebx
test edi, edi
jl 0x5810c3
inc edi
mov dword [ebp - 0x20], 0
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x20]
call fcn.0045c128
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x580fff
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
lea ebx, [eax + edx*4]
movzx eax, byte [ebx + 2]
mov byte [ebp - 0x24], al
movzx eax, byte [ebx + 1]
mov byte [ebp - 0x23], al
movzx eax, byte [ebx]
mov byte [ebp - 0x22], al
cmp dword [ebp - 0x24], 0xff00ff
je 0x580ff7
movzx eax, byte [ebp - 0x24]
cmp al, byte [ebp - 0x23]
jne 0x580fd6
cmp al, byte [ebp - 0x22]
je 0x580ff7
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.00514bfc
mov dword [ebp - 0x24], eax
movzx eax, byte [ebp - 0x24]
mov byte [ebx + 2], al
movzx eax, byte [ebp - 0x23]
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0x22]
mov byte [ebx], al
inc dword [ebp - 0x1c]
dec dword [ebp - 0x50]
jne 0x580fa2
inc dword [ebp - 0x20]
dec edi
jne 0x580f75
jmp 0x5810c3
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov dl, 6
call fcn.0045d300
mov edi, ebx
test edi, edi
jl 0x5810c3
inc edi
mov dword [ebp - 0x20], 0
imul eax, dword [ebp - 0xc], 0xd
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x94]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 0x20]
call fcn.0045c128
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5810b9
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 0x10]
lea ebx, [edx + eax]
movzx eax, byte [ebx + 2]
mov byte [ebp - 0x24], al
movzx eax, byte [ebx + 1]
mov byte [ebp - 0x23], al
movzx eax, byte [ebx]
mov byte [ebp - 0x22], al
mov eax, dword [0x5a4a8c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
je 0x5810b1
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.00514bfc
mov dword [ebp - 0x24], eax
movzx eax, byte [ebp - 0x24]
mov byte [ebx + 2], al
movzx eax, byte [ebp - 0x23]
mov byte [ebx + 1], al
movzx eax, byte [ebp - 0x22]
mov byte [ebx], al
inc dword [ebp - 0x1c]
dec dword [ebp - 0x50]
jne 0x581064
inc dword [ebp - 0x20]
dec edi
jne 0x581037
inc dword [ebp - 0xc]
dec dword [ebp - 0x4c]
jne 0x580eb1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c]
call fcn.0040845c
dec eax
test eax, eax
jl 0x58134d
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0xc], 0
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov edx, dword [edx + eax*8 + 8]
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov dword [ecx + edx*8 + 8], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov edx, dword [edx + eax*8 + 0x60]
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov dword [ecx + edx*8 + 0x60], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov edx, dword [edx + eax*8 + 0x7c]
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov dword [ecx + edx*8 + 0x7c], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov edx, dword [edx + eax*8 + 0x78]
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov dword [ecx + edx*8 + 0x78], eax
mov ebx, 1
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
lea eax, [edx + eax*8]
mov edi, dword [eax + ebx*4 + 8]
cmp edi, 0xffffffff
je 0x5811d0
mov edx, edi
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
lea edx, [ecx + edx*8]
mov dword [edx + ebx*4 + 8], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
lea eax, [edx + eax*8]
mov edi, dword [eax + ebx*4 + 0x1c]
cmp edi, 0xffffffff
je 0x581206
mov edx, edi
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
lea edx, [ecx + edx*8]
mov dword [edx + ebx*4 + 0x1c], eax
inc ebx
cmp ebx, 6
jne 0x58119a
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x4c]
mov edx, 0x5814ec
call fcn.0057b45c
mov ecx, 5
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jl 0x5812ad
inc edi
xor ebx, ebx
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x50]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*4]
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x50]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x50]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*4 + 4]
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x50]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4 + 4], eax
inc ebx
dec edi
jne 0x58123d
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x70]
call fcn.0040845c
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jl 0x581341
inc edi
xor ebx, ebx
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x70]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*4]
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x70]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4], eax
imul eax, dword [ebp - 0xc], 0x13
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x9c]
mov eax, dword [edx + eax*8 + 0x70]
lea edx, [ebx + ebx*4]
mov edx, dword [eax + edx*4 + 4]
mov eax, esi
call fcn.00514bfc
imul edx, dword [ebp - 0xc], 0x13
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c]
mov edx, dword [ecx + edx*8 + 0x70]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4 + 4], eax
inc ebx
dec edi
jne 0x5812d1
inc dword [ebp - 0xc]
dec dword [ebp - 0x4c]
jne 0x5810f1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x90]
mov edx, dword [eax + 0x20]
mov eax, esi
call fcn.00514bfc
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x90]
mov dword [ebx + 0x20], eax
mov edx, dword [ebx + 0x3c]
mov eax, esi
call fcn.00514bfc
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x90]
mov dword [edx + 0x3c], eax
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x580748]
call fcn.00408624
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5813bd
lea eax, [ebp - 4]
mov edx, dword [0x580748]
call fcn.00408630
ret