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

Disassembly:
sub esp, 0x98
mov eax, dword [0x5b3480]
xor eax, esp
mov dword [esp + 0x94], eax
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov esi, dword [esp + 0xac]
cmp dword [ebx + 0x1c], 0
mov ecx, dword [ebx + 0x40]
push edi
mov dword [ebx + 0x38], 0
jne 0x506874
mov edx, dword [esp + 0xb4]
mov ebp, 1
mov eax, dword [ebx + 0x38]
cmp edx, 8
cmovbe eax, ebp
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x3c]
cmp dword [eax + 0x404], 2
jne 0x5065f3
mov dword [ebx + 0x38], 0
cmp ecx, 2
je 0x5064c8
mov dword [ebx + 0x18], 0
xor esi, esi
push esi
push dword [ebx + 0x3c]
call fcn.00509c90
add esp, 8
mov edx, ebp
test eax, eax
je 0x5064b2
mov ecx, 0xb
sub ecx, eax
shl edx, cl
mov eax, dword [ebx]
mov dword [eax + esi*4], edx
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
inc esi
add dword [ebx + 0x18], eax
cmp esi, 0xff
jbe 0x506497
mov eax, dword [ebx + 0x3c]
mov ebp, 4
add eax, 0xcb8
mov esi, ebp
movzx ecx, word [eax]
test ecx, ecx
je 0x5064e1
dec ecx
shl esi, cl
mov edi, dword [ebx + 4]
add esi, 8
xor edx, edx
mov dword [ebx + 0x1c], 0
add esi, eax
mov eax, dword [esi]
add eax, 0xffff
shr eax, 0x10
test eax, eax
je 0x506510
mov ecx, 0xa
sub ecx, eax
mov eax, 1
shl eax, cl
jmp 0x506515
mov eax, 1
mov dword [edi + edx], eax
add esi, 8
mov edi, dword [ebx + 4]
mov eax, dword [edi + edx]
add edx, ebp
add dword [ebx + 0x1c], eax
cmp edx, 0x8c
jbe 0x5064f2
mov eax, dword [ebx + 0x3c]
mov esi, ebp
add eax, 0x70c
movzx ecx, word [eax]
test ecx, ecx
je 0x506542
dec ecx
shl esi, cl
mov edi, dword [ebx + 8]
add esi, 8
xor edx, edx
mov dword [ebx + 0x20], 0
add esi, eax
mov eax, dword [esi]
add eax, 0xffff
shr eax, 0x10
test eax, eax
je 0x506571
mov ecx, 0xa
sub ecx, eax
mov eax, 1
shl eax, cl
jmp 0x506576
mov eax, 1
mov dword [edi + edx], eax
add esi, 8
mov edi, dword [ebx + 8]
mov eax, dword [edi + edx]
add edx, ebp
add dword [ebx + 0x20], eax
cmp edx, 0xd0
jbe 0x506553
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax + 0x408]
test ecx, ecx
je 0x5065a0
dec ecx
shl ebp, cl
mov edi, dword [ebx + 0xc]
lea esi, [eax + 0x410]
xor edx, edx
mov dword [ebx + 0x24], 0
add esi, ebp
mov eax, dword [esi]
add eax, 0xffff
shr eax, 0x10
test eax, eax
je 0x5065d2
mov ecx, 0xa
sub ecx, eax
mov eax, 1
shl eax, cl
jmp 0x5065d7
mov eax, 1
mov dword [edi + edx], eax
add esi, 8
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + edx]
add edx, 4
add dword [ebx + 0x24], eax
cmp edx, 0x7c
jbe 0x5065b4
jmp 0x5068bd
cmp ecx, 2
je 0x506624
push edx
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0xff
push eax
push dword [ebx]
call fcn.00507140
push 0
push 8
push 0xff
push dword [ebx]
call fcn.00505d10
add esp, 0x20
mov dword [ebx + 0x18], eax
mov edi, dword [ebx + 4]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
lea esi, [esp + 0x14]
mov dword [esp + 0x18], 2
mov ecx, 0x24
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x9c], ebp
mov dword [esp + 0xa0], ebp
push 0x24
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00506c60
mov edi, dword [ebx + 8]
lea esi, [ebx + 8]
add esp, 8
mov dword [ebx + 0x1c], eax
xor edx, edx
lea ecx, [edi + 0xd0]
cmp edi, esi
ja 0x50670d
cmp ecx, esi
jae 0x506718
mov edx, 0x34
mov eax, ebp
mov ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov dword [eax + edx*4], ebp
inc edx
cmp edx, 0x34
jbe 0x506718
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], 6
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [ebx + 0x20], 0x35
mov dword [eax], 6
mov dword [eax + 4], 2
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], 2
mov dword [eax + 0x14], 3
mov dword [eax + 0x18], 4
mov dword [eax + 0x1c], 4
mov dword [eax + 0x20], 4
mov dword [eax + 0x24], 3
mov dword [eax + 0x28], 2
mov dword [eax + 0x2c], ebp
mov dword [eax + 0x30], ebp
mov dword [eax + 0x34], ebp
mov dword [eax + 0x38], ebp
mov dword [eax + 0x3c], ebp
mov dword [eax + 0x40], ebp
mov dword [eax + 0x44], ebp
mov dword [eax + 0x48], ebp
mov dword [eax + 0x4c], ebp
mov dword [eax + 0x50], ebp
mov dword [eax + 0x54], ebp
mov dword [eax + 0x58], ebp
mov dword [eax + 0x5c], ebp
mov dword [eax + 0x60], ebp
mov dword [eax + 0x64], ebp
mov dword [eax + 0x68], ebp
mov dword [eax + 0x6c], ebp
mov dword [eax + 0x70], ebp
mov dword [eax + 0x74], ebp
mov dword [eax + 0x78], ebp
mov dword [eax + 0x7c], ebp
lea eax, [esp + 0x14]
push 0x20
push eax
call fcn.00506c60
add esp, 8
jmp 0x5068ba
cmp ecx, 2
je 0x50688d
push 0xc
push 0xff
push dword [ebx]
call fcn.005068f0
add esp, 0xc
mov dword [ebx + 0x18], eax
push 0xb
push 0x23
push dword [ebx + 4]
call fcn.005068f0
push 0xb
push 0x34
push dword [ebx + 8]
mov dword [ebx + 0x1c], eax
call fcn.005068f0
push 0xb
push 0x1f
push dword [ebx + 0xc]
mov dword [ebx + 0x20], eax
call fcn.005068f0
add esp, 0x24
mov dword [ebx + 0x24], eax
push dword [esp + 0xb8]
push ebx
call fcn.00506ad0
mov ecx, dword [esp + 0xac]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004913e0
add esp, 0x98
ret