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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov esi, 0
test eax, eax
jle 0x507be4
mov dword [esp + 0x18], 0
mov ebx, eax
nop word cs:[eax + eax]
mov dword [esp + 8], ebx
dec ebx
mov esi, 0
test eax, eax
jle 0x5073c1
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov edx, 1
nop dword [eax + eax]
mov esi, dword [ecx + edx*4 - 4]
cmp dword [esi], ebx
je 0x5073c1
lea edi, [edx + 1]
cmp edx, eax
mov edx, edi
jl 0x5073b0
cmp dword [esi + 0x28], 0
je 0x5074b0
mov edi, dword [esi + 0x40]
mov eax, dword [esi]
mov dword [esp + 0x24], eax
mov esi, dword [esi + 0x3c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 4]
mov edx, 0x20
push 0
lea eax, [esp + 0x5c]
push eax
call fcn.004ef0a0
add esp, 8
mov ecx, eax
test eax, eax
je 0x507530
mov esi, dword [esp + 0x28]
test esi, esi
mov edi, ecx
je 0x50757b
cmp dword [0x53c208], 0
je 0x507571
mov eax, dword [0x53de88]
test eax, eax
je 0x50746f
push eax
call dword [0x53c258]
add esp, 4
push esi
call dword [0x53c234]
add esp, 4
sub dword [0x53de30], eax
dec dword [0x53de54]
push esi
call dword [0x53c22c]
add esp, 4
mov eax, dword [0x53de88]
test eax, eax
je 0x50757b
push eax
call dword [0x53c260]
jmp 0x507578
mov ecx, dword [esp + 4]
mov edx, esi
call fcn.00503ec0
mov edi, eax
test eax, eax
jne 0x507990
mov esi, dword [esi]
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 4]
mov edx, 0x1e
push 0
lea eax, [esp + 0x2c]
push eax
call fcn.004ef0a0
add esp, 8
mov edi, eax
test eax, eax
jne 0x507990
mov edi, esi
mov esi, dword [esp + 0x28]
mov ecx, esi
mov edx, 1
call fcn.004323c0
test eax, eax
jne 0x507921
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x11], 0x90
je 0x5078fc
mov edx, dword [esp + 0xc]
push dword [ebp + 8]
call fcn.00457030
add esp, 4
jmp 0x50790e
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
mov esi, dword [esp + 0x58]
mov ecx, esi
mov edx, 1
call fcn.004323c0
test eax, eax
jne 0x507614
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x11], 0x90
je 0x5075ef
mov edx, dword [esp + 0xc]
push dword [ebp + 8]
call fcn.00457030
add esp, 4
jmp 0x507601
push esi
call dword [0x53c22c]
add esp, 4
mov esi, dword [esp + 0x40]
test esi, esi
je 0x5075db
cmp dword [0x53c208], 0
je 0x5075d1
mov eax, dword [0x53de88]
test eax, eax
je 0x50759f
push eax
call dword [0x53c258]
add esp, 4
push esi
call dword [0x53c234]
add esp, 4
sub dword [0x53de30], eax
dec dword [0x53de54]
push esi
call dword [0x53c22c]
add esp, 4
mov eax, dword [0x53de88]
test eax, eax
je 0x5075db
push eax
call dword [0x53c260]
jmp 0x5075d8
push esi
call dword [0x53c22c]
add esp, 4
inc dword [esp + 0x18]
cmp dword [esp + 8], 2
jge 0x5079a4
jmp 0x507bd8
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov word [ecx + 0x10], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507614
push eax
call dword [0x53c260]
add esp, 4
mov ecx, esi
mov edx, 2
call fcn.004323c0
test eax, eax
jne 0x50766c
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x39], 0x90
je 0x507644
add ecx, 0x28
mov edx, dword [esp + 0x24]
mov eax, edx
sar eax, 0x1f
push eax
call fcn.00457030
add esp, 4
jmp 0x507659
mov edx, dword [esp + 0x24]
mov eax, edx
sar eax, 0x1f
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], eax
mov word [ecx + 0x38], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50766c
push eax
call dword [0x53c260]
add esp, 4
push esi
call fcn.0042be30
add esp, 4
cmp eax, 0x64
jne 0x50787c
push 4
push esi
call fcn.00431a60
add esp, 8
mov dword [esp], eax
push 4
push esi
call fcn.00431b10
add esp, 8
mov edi, eax
push 1
push esi
call fcn.0042d040
add esp, 8
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov ecx, dword [esp]
mov edx, edi
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
call fcn.00508510
add esp, 0x10
mov edi, eax
push esi
call fcn.00430240
add esp, 4
mov ecx, edi
test edi, edi
jne 0x507441
mov dword [esp], 0
test eax, eax
jne 0x50788c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, ecx
or esi, edx
mov edi, 0
je 0x50788e
nop word cs:[eax + eax]
mov edi, edx
mov edx, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x54], 0
mov esi, dword [esp + 4]
mov ecx, esi
mov dword [esp], edx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], edi
push edi
call fcn.004ef290
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x507790
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
lea eax, [esp + 0x4c]
push eax
call fcn.00508510
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x507790
mov ecx, esi
mov edx, dword [esp]
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x18]
call fcn.00503a60
add esp, 0xc
mov edi, eax
nop dword [eax]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x5077fa
cmp dword [0x53c208], 0
je 0x5077f0
mov eax, dword [0x53de88]
test eax, eax
je 0x5077b4
push eax
call dword [0x53c258]
add esp, 4
push esi
call dword [0x53c234]
add esp, 4
sub dword [0x53de30], eax
dec dword [0x53de54]
push esi
call dword [0x53c22c]
add esp, 4
mov eax, dword [0x53de88]
test eax, eax
je 0x5077fa
push eax
call dword [0x53c260]
jmp 0x5077f7
push esi
call dword [0x53c22c]
add esp, 4
test edi, edi
jne 0x507810
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, ecx
or eax, edx
jne 0x507710
mov ecx, edi
test edi, edi
mov edi, dword [esp + 0x10]
jne 0x507441
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 4]
mov edx, 0x11
push 0
lea eax, [esp + 0x18]
push eax
call fcn.004ef0a0
add esp, 8
test eax, eax
jne 0x50788e
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, 1
call fcn.004323c0
test eax, eax
jne 0x507b5a
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x11], 0x90
je 0x507b34
mov edx, dword [esp + 0x4c]
push dword [esp + 0x50]
call fcn.00457030
add esp, 4
jmp 0x507b47
mov dword [esp], 0
push esi
call fcn.00430240
add esp, 4
xor edi, edi
mov ecx, eax
test eax, eax
jne 0x507441
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 4]
mov edx, 0x21
push 0
lea eax, [esp + 0x18]
push eax
call fcn.004ef0a0
add esp, 8
mov esi, eax
test eax, eax
jne 0x507b2d
mov esi, dword [esp + 0x14]
mov ecx, esi
mov edx, 1
call fcn.004323c0
test eax, eax
jne 0x5079dc
mov dword [esp + 0x10], esi
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x11], 0x90
je 0x5079b7
mov edx, dword [esp]
push edi
call fcn.00457030
add esp, 4
jmp 0x5079c5
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov word [ecx + 0x10], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507921
push eax
call dword [0x53c260]
add esp, 4
mov ecx, esi
mov edx, 2
call fcn.004323c0
test eax, eax
jne 0x507971
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x39], 0x90
je 0x50794f
add ecx, 0x28
mov edx, edi
mov eax, edi
sar eax, 0x1f
push eax
call fcn.00457030
add esp, 4
jmp 0x50795e
mov dword [ecx + 0x28], edi
sar edi, 0x1f
mov dword [ecx + 0x2c], edi
mov word [ecx + 0x38], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507971
push eax
call dword [0x53c260]
add esp, 4
push esi
call fcn.0042be30
add esp, 4
push esi
call fcn.00430240
add esp, 4
mov edi, eax
nop word cs:[eax + eax]
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
cmp dword [esp + 8], 2
jl 0x507bd8
test edi, edi
jne 0x507bd8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
jmp 0x507390
mov eax, dword [esp]
mov dword [ecx], eax
mov dword [ecx + 4], edi
mov word [ecx + 0x10], 4
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x5079dc
push eax
call dword [0x53c260]
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov edi, dword [esp + 0x2c]
mov ecx, esi
mov edx, 2
call fcn.004323c0
test eax, eax
jne 0x507a45
mov edx, dword [esp]
test edx, edx
je 0x507a32
mov eax, edi
sar eax, 0x1f
mov ecx, dword [esi + 0x64]
add ecx, 0x28
push 0
push 0
push eax
push edi
call fcn.00430c10
add esp, 0x10
test eax, eax
je 0x507a32
mov edi, eax
mov ecx, dword [esi]
mov dword [ecx + 0x40], eax
mov edx, eax
call fcn.00444780
mov ecx, dword [esi]
mov edx, edi
call fcn.00453910
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507a45
push eax
call dword [0x53c260]
add esp, 4
mov ecx, esi
mov edx, 3
call fcn.004323c0
test eax, eax
mov edi, esi
jne 0x507a9a
mov ecx, dword [edi + 0x64]
test byte [ecx + 0x61], 0x90
je 0x507a74
add ecx, 0x50
mov edx, dword [esp + 0xc]
push dword [ebp + 8]
call fcn.00457030
add esp, 4
jmp 0x507a87
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x54], eax
mov word [ecx + 0x60], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507a9a
push eax
call dword [0x53c260]
add esp, 4
mov ecx, edi
mov edx, 4
call fcn.004323c0
test eax, eax
jne 0x507af6
mov ecx, dword [edi + 0x64]
test byte [ecx + 0x89], 0x90
je 0x507acd
add ecx, 0x78
mov edx, dword [esp + 0x24]
mov eax, edx
sar eax, 0x1f
push eax
call fcn.00457030
add esp, 4
jmp 0x507ae3
mov eax, dword [esp + 0x24]
mov dword [ecx + 0x78], eax
sar eax, 0x1f
mov dword [ecx + 0x7c], eax
mov word [ecx + 0x88], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507af6
push eax
call dword [0x53c260]
add esp, 4
push edi
call fcn.0042be30
add esp, 4
push edi
call fcn.00430240
add esp, 4
mov esi, eax
mov ecx, edi
mov edx, 2
call fcn.004323c0
test eax, eax
jne 0x507b2d
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507b2d
push eax
call dword [0x53c260]
add esp, 4
mov ecx, esi
jmp 0x507441
mov eax, dword [esp + 0x4c]
mov dword [ecx], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov word [ecx + 0x10], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507b5a
push eax
call dword [0x53c260]
add esp, 4
mov eax, dword [esp]
add eax, 0xffffffff
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x10]
adc edi, 0xffffffff
mov ecx, esi
mov edx, 2
call fcn.004323c0
test eax, eax
jne 0x507bbd
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x39], 0x90
je 0x507b9a
add ecx, 0x28
push edi
call fcn.00457030
add esp, 4
jmp 0x507ba6
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], edi
mov word [ecx + 0x38], 4
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507bbd
push eax
call dword [0x53c260]
add esp, 4
push esi
call fcn.0042be30
add esp, 4
push esi
call fcn.00430240
add esp, 4
mov edi, dword [esp + 0x10]
jmp 0x50788e
test edi, edi
mov esi, dword [esp + 0x18]
jne 0x507f3f
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax + 4]
jne 0x507bf3
xor edi, edi
jmp 0x507f3f
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], 0
lea eax, [esp + 0x28]
mov ecx, dword [esp + 4]
mov edx, 0x23
push 0
push eax
call fcn.004ef0a0
add esp, 8
test eax, eax
je 0x507c28
mov edi, eax
xor ebx, ebx
jmp 0x507d5c
mov edi, dword [esp + 0x28]
mov ecx, edi
mov edx, 1
call fcn.004323c0
test eax, eax
jne 0x507c7b
mov ecx, dword [edi + 0x64]
test byte [ecx + 0x11], 0x90
je 0x507c56
mov edx, dword [esp + 0xc]
push dword [ebp + 8]
call fcn.00457030
add esp, 4
jmp 0x507c68
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], eax
mov word [ecx + 0x10], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507c7b
push eax
call dword [0x53c260]
add esp, 4
mov dword [esp + 0x18], esi
push edi
call fcn.0042be30
add esp, 4
cmp eax, 0x64
jne 0x507d09
xor esi, esi
xor ebx, ebx
mov dword [esp + 8], 0
jmp 0x507ccf
mov dword [esp], esi
mov esi, dword [esp + 8]
push 0
push edi
call fcn.0042d110
add esp, 8
mov dword [esp + 8], esi
mov dword [esi + ebx*4], eax
inc ebx
mov edi, dword [esp + 0x28]
push edi
call fcn.0042be30
add esp, 4
cmp eax, 0x64
mov esi, dword [esp]
jne 0x507d13
cmp ebx, esi
jl 0x507ca0
call fcn.00423a30
test eax, eax
jne 0x507d46
lea edx, [esi*4 + 0x40]
test edx, edx
mov eax, 0
cmovle edx, eax
mov ecx, dword [esp + 8]
push 0
call fcn.00424fb0
add esp, 4
test eax, eax
je 0x507d46
add esi, 0x10
mov dword [esp], esi
mov esi, eax
jmp 0x507ca7
mov dword [esp + 8], 0
xor ebx, ebx
push edi
call fcn.00430240
add esp, 4
test eax, eax
jne 0x507d42
lea eax, [esp + 0x40]
mov esi, dword [esp + 4]
mov ecx, esi
mov edx, 0x1f
push 0
push eax
call fcn.004ef0a0
add esp, 8
test eax, eax
je 0x507dc9
mov edi, eax
jmp 0x507d54
push edi
call fcn.00430240
add esp, 4
mov edi, 7
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 8]
mov eax, dword [esp + 4]
add eax, 0xf0
mov byte [eax], 0
test ebx, ebx
je 0x507f3f
cmp dword [0x53c208], 0
je 0x507f35
mov eax, dword [0x53de88]
test eax, eax
je 0x507d90
push eax
call dword [0x53c258]
add esp, 4
push ebx
call dword [0x53c234]
add esp, 4
sub dword [0x53de30], eax
dec dword [0x53de54]
push ebx
call dword [0x53c22c]
add esp, 4
mov eax, dword [0x53de88]
test eax, eax
je 0x507f3f
push eax
call dword [0x53c260]
jmp 0x507f3c
mov edi, dword [esp + 0x40]
mov ecx, edi
mov edx, 2
call fcn.004323c0
test eax, eax
jne 0x507e20
mov ecx, dword [edi + 0x64]
test byte [ecx + 0x39], 0x90
je 0x507dfa
add ecx, 0x28
mov edx, dword [esp + 0xc]
push dword [ebp + 8]
call fcn.00457030
add esp, 4
jmp 0x507e0d
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
mov word [ecx + 0x38], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507e20
push eax
call dword [0x53c260]
add esp, 4
mov byte [esi + 0xf0], 1
add esi, 0xf0
mov dword [esp + 4], esi
test ebx, ebx
je 0x507f4e
mov dword [esp + 0x10], edi
xor esi, esi
nop
mov eax, dword [esp + 8]
mov eax, dword [eax + esi*4]
mov edi, 0
cmp esi, eax
je 0x507f0c
mov dword [esp], eax
mov edi, dword [esp + 0x10]
mov ecx, edi
mov edx, 3
call fcn.004323c0
test eax, eax
jne 0x507eaf
mov ecx, dword [edi + 0x64]
test byte [ecx + 0x61], 0x90
je 0x507e8a
add ecx, 0x50
mov edx, dword [esp]
mov eax, edx
sar eax, 0x1f
push eax
call fcn.00457030
add esp, 4
jmp 0x507e9c
mov eax, dword [esp]
mov dword [ecx + 0x50], eax
sar eax, 0x1f
mov dword [ecx + 0x54], eax
mov word [ecx + 0x60], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507eaf
push eax
call dword [0x53c260]
add esp, 4
mov ecx, edi
mov edx, 1
call fcn.004323c0
test eax, eax
jne 0x507ef8
mov ecx, dword [edi + 0x64]
test byte [ecx + 0x11], 0x90
je 0x507ed6
mov edx, esi
push 0
call fcn.00457030
add esp, 4
jmp 0x507ee5
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov word [ecx + 0x10], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x507ef8
push eax
call dword [0x53c260]
add esp, 4
push edi
call fcn.0042be30
add esp, 4
push edi
call fcn.00430240
add esp, 4
mov edi, eax
test edi, edi
jne 0x507f19
inc esi
cmp esi, ebx
jb 0x507e40
mov eax, dword [esp + 4]
mov byte [eax], 0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 8]
cmp dword [0x53c208], 0
jne 0x507d7d
push ebx
call dword [0x53c22c]
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
jmp 0x507d65