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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
cmp dword [ebx + 0x1c], 0
mov ecx, dword [ebx + 0x40]
mov dword [ebx + 0x38], 0
jne 0x5030bf
mov edx, dword [ebp + 8]
cmp edx, 8
ja 0x502b93
mov dword [ebx + 0x38], 1
mov eax, dword [ebx + 0x3c]
cmp dword [eax + 0x404], 2
jne 0x502d3b
mov dword [ebx + 0x38], 0
cmp ecx, 2
je 0x502bf9
mov esi, dword [ebx]
xor edx, edx
mov dword [ebx + 0x18], 0
nop word [eax + eax]
mov eax, dword [ebx + 0x3c]
mov eax, dword [edx + eax + 4]
and eax, 0xff
je 0x502bde
mov ecx, 0xb
sub ecx, eax
mov eax, 1
shl eax, cl
jmp 0x502be3
mov eax, 1
mov dword [edx + esi], eax
mov esi, dword [ebx]
mov eax, dword [esi + edx]
add edx, 4
add dword [ebx + 0x18], eax
cmp edx, 0x3fc
jbe 0x502bc0
mov eax, dword [ebx + 0x3c]
mov esi, 4
add eax, 0xcb8
movzx ecx, word [eax]
test ecx, ecx
je 0x502c10
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 0x502c3f
mov ecx, 0xa
sub ecx, eax
mov eax, 1
shl eax, cl
jmp 0x502c44
mov eax, 1
mov dword [edi + edx], eax
add esi, 8
mov edi, dword [ebx + 4]
mov eax, dword [edi + edx]
add edx, 4
add dword [ebx + 0x1c], eax
cmp edx, 0x8c
jbe 0x502c21
mov eax, dword [ebx + 0x3c]
mov esi, 4
add eax, 0x70c
movzx ecx, word [eax]
test ecx, ecx
je 0x502c75
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 0x502ca4
mov ecx, 0xa
sub ecx, eax
mov eax, 1
shl eax, cl
jmp 0x502ca9
mov eax, 1
mov dword [edi + edx], eax
add esi, 8
mov edi, dword [ebx + 8]
mov eax, dword [edi + edx]
add edx, 4
add dword [ebx + 0x20], eax
cmp edx, 0xd0
jbe 0x502c86
mov eax, dword [ebx + 0x3c]
mov esi, 4
add eax, 0x408
movzx ecx, word [eax]
test ecx, ecx
je 0x502cda
dec ecx
shl esi, cl
mov edi, dword [ebx + 0xc]
add esi, 8
xor edx, edx
mov dword [ebx + 0x24], 0
add esi, eax
nop dword [eax + eax]
mov eax, dword [esi]
add eax, 0xffff
shr eax, 0x10
test eax, eax
je 0x502d0e
mov ecx, 0xa
sub ecx, eax
mov eax, 1
shl eax, cl
jmp 0x502d13
mov eax, 1
mov dword [edx + edi], eax
add esi, 8
mov edi, dword [ebx + 0xc]
mov eax, dword [edx + edi]
add edx, 4
add dword [ebx + 0x24], eax
cmp edx, 0x7c
jbe 0x502cf0
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.00502800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 2
je 0x502d69
mov ecx, dword [ebx]
push edx
push esi
lea edx, [ebp - 4]
mov dword [ebp - 4], 0xff
call fcn.0050f9c0
mov ecx, dword [ebx]
mov edx, 0xff
push 0
push 8
call fcn.00502970
add esp, 0x10
mov dword [ebx + 0x18], eax
mov edi, dword [ebx + 4]
lea esi, [ebp - 0x94]
mov dword [ebp - 0x94], 4
mov ecx, 0x24
mov dword [ebp - 0x90], 2
mov edx, 0x24
mov dword [ebp - 0x8c], 1
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 1
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x94]
call fcn.005028b0
mov edi, dword [ebx + 8]
lea esi, [ebx + 8]
xor edx, edx
mov dword [ebx + 0x1c], eax
lea eax, [edi + 0xd0]
cmp edi, esi
ja 0x502ead
cmp eax, esi
jae 0x502ec0
mov edx, 0x34
mov eax, 1
mov ecx, edx
rep stosd dword es:[edi], eax
nop dword [eax + eax]
mov eax, dword [esi]
mov dword [eax + edx*4], 1
inc edx
cmp edx, 0x34
jbe 0x502ec0
mov eax, dword [ebx + 0xc]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], 6
mov edx, 0x20
mov dword [ebp - 0x80], 2
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], 2
mov dword [ebp - 0x70], 3
mov dword [ebp - 0x6c], 4
mov dword [ebp - 0x68], 4
mov dword [ebp - 0x64], 4
mov dword [ebp - 0x60], 3
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 1
mov dword [ebx + 0x20], 0x35
mov dword [eax], 6
mov dword [eax + 4], 2
mov dword [eax + 8], 1
mov dword [eax + 0xc], 1
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], 1
mov dword [eax + 0x30], 1
mov dword [eax + 0x34], 1
mov dword [eax + 0x38], 1
mov dword [eax + 0x3c], 1
mov dword [eax + 0x40], 1
mov dword [eax + 0x44], 1
mov dword [eax + 0x48], 1
mov dword [eax + 0x4c], 1
mov dword [eax + 0x50], 1
mov dword [eax + 0x54], 1
mov dword [eax + 0x58], 1
mov dword [eax + 0x5c], 1
mov dword [eax + 0x60], 1
mov dword [eax + 0x64], 1
mov dword [eax + 0x68], 1
mov dword [eax + 0x6c], 1
mov dword [eax + 0x70], 1
mov dword [eax + 0x74], 1
mov dword [eax + 0x78], 1
mov dword [eax + 0x7c], 1
call fcn.005028b0
mov edx, dword [ebp + 0xc]
mov ecx, ebx
mov dword [ebx + 0x24], eax
call fcn.00502800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 2
je 0x5030d8
mov ecx, dword [ebx]
mov edx, 0xff
push 0xc
call fcn.00502a30
add esp, 4
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov edx, 0x23
push 0xb
call fcn.00502a30
mov ecx, dword [ebx + 8]
mov edx, 0x34
push 0xb
mov dword [ebx + 0x1c], eax
call fcn.00502a30
mov ecx, dword [ebx + 0xc]
mov edx, 0x1f
push 0xb
mov dword [ebx + 0x20], eax
call fcn.00502a30
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, ebx
mov dword [ebx + 0x24], eax
call fcn.00502800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret