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

Disassembly:
add esp, 4
sub eax, 0x7f74
sub eax, 0x10592
pop eax
cmp dword [ebp - 0x1518], 0
jne 0x506e31
mov dword [ebp - 0x710], 0
jmp 0x5070d8
mov edx, dword [ebp - 0x1518]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc58], ecx
push ebx
call 0x506e53
add byte [edx], bh
dec eax
inc esp
inc ecx
inc edi
cmp dl, byte [eax + 0x41]
add esp, 4
or ebx, 0x9ad2
add ebx, 0x2161
pop ebx
push eax
push edx
add esp, 4
sub eax, 0x15b6a
add eax, 0x1462e
pop eax
cmp dword [ebp - 0xc58], 0
jne 0x506e8d
mov dword [ebp - 0x710], 0
jmp 0x5070d8
mov edx, dword [ebp - 0xc58]
mov dword [ebp - 0x4e8], edx
push esi
or esi, 0x1608d
jmp 0x506ea6
and esi, 0x14675
pop esi
push edx
and edx, 0x15dad
and edx, 0x15295
call 0x506ec7
add byte [ecx + edi], dh
dec ebp
inc ebx
dec ecx
add esp, 4
pop edx
lea eax, [ebp - 0x16e8]
mov dword [ebp - 0xc54], eax
mov ecx, dword [ebp - 0x4e8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xc50], edx
xor eax, eax
mov word [ebp - 0x208], ax
xor ecx, ecx
mov word [ebp - 0x3c], cx
push esi
xor esi, 0x10064
or esi, 0xd480
xor esi, 0x8dc
pop esi
push ecx
push edi
add esp, 4
add ecx, 0xec25
and ecx, 0x139a4
and ecx, 0x73d8
xor ecx, 0x1719
pop ecx
mov edx, dword [ebp - 0xc50]
mov ax, word [edx]
mov word [ebp - 0xf8e], ax
mov ecx, dword [ebp - 0xc50]
add ecx, 2
mov dword [ebp - 0xc50], ecx
mov dx, word [ebp - 0xf8e]
mov word [ebp - 0x208], dx
mov eax, dword [ebp - 0xc54]
mov cx, word [eax]
mov word [ebp - 0xf90], cx
mov edx, dword [ebp - 0xc54]
add edx, 2
mov dword [ebp - 0xc54], edx
mov ax, word [ebp - 0xf90]
mov word [ebp - 0x3c], ax
push edx
and edx, 0x6b51
call 0x506f92
add byte [edx + 0x43], cl
push eax
inc esp
cmp cl, byte [ebp + 0x43]
add esp, 4
or edx, 0x11d63
add edx, 0x9598
pop edx
push edx
xor edx, 0x416
add edx, 0x17a0
pop edx
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x506fcd
movzx edx, word [ebp - 0x208]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1560], edx
jmp 0x507027
movzx ecx, word [ebp - 0x208]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x506ef5
movzx eax, word [ebp - 0x208]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x506ef5
movzx edx, word [ebp - 0x208]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x507011
mov dword [ebp - 0x151c], 0xffffffff
jmp 0x50701b
mov dword [ebp - 0x151c], 1
mov ecx, dword [ebp - 0x151c]
mov dword [ebp - 0x1560], ecx
cmp dword [ebp - 0x1560], 0
jne 0x507070
push edi
sub edi, 0x5944
or edi, 0x4186
sub edi, 0x3aa9
and edi, 0x3176
pop edi
push esi
push edx
add esp, 4
jmp 0x507055
and esi, 0x5030
and esi, 0x3b3c
pop esi
mov edx, dword [ebp - 0x4e8]
mov dword [ebp - 0x710], edx
jmp 0x5070d8
push eax
push edi
add esp, 4
and eax, 0x7534
call 0x50708b
add byte [ebp + 0x41], cl
inc esp
dec ebp
inc ebx
inc ebx
dec eax
dec esi
inc ebp
xor al, 0x83
les eax, [eax + ebp*8]
or eax, dword [eax]
add byte [eax], al
add byte [eax + 0x3b], al
xor al, 0x3b
dec ecx
inc edi
cmp al, byte [ebx + 0x33]
xor al, 0x83
les eax, [eax + ebx*2]
mov eax, dword [ebp - 0x4e8]
mov ecx, dword [eax]
mov dword [ebp - 0x4e8], ecx
mov edx, dword [ebp - 0x4e8]
cmp edx, dword [ebp - 0xc58]
je 0x5070ce
mov eax, dword [ebp - 0x4e8]
cmp dword [eax + 0x30], 0
jne 0x506e99
mov dword [ebp - 0x710], 0
push ebx
push edx
add esp, 4
jmp 0x5070e3
sub ebx, 0xb41b
or ebx, 0x76a2
and ebx, 0x172cc
pop ebx
push edi
call 0x507106
add byte [edi + 0x47], al
xor bh, byte [ebx + ecx*2]
inc esp
xor cl, byte [ebp + 0x49]
add esp, 4
pop edi
cmp dword [ebp - 0x710], 0
jne 0x507154
push ecx
call 0x507123
add byte [esp + edi], bh
cmp eax, dword [ebx + 0x41]
push eax
aaa
inc eax
xor eax, 0x8104c483
jmp 0x5177bb
push ecx
push edi
add esp, 4
and ecx, 0x14e11
pop ecx
push ecx
push esi
add esp, 4
jmp 0x50716b
or ecx, 0x16577
pop ecx
push ebx
call 0x507182
add byte [ecx + 0x3b], al
xor eax, 0x3a383c41
cmp eax, dword ds:[ebx - 0x74a4fb3c]
invalid
push es
xchg edx, eax
pop eax
aaa
nop
pushfd
cmp eax, 6
push es
cmp al, bh
insd dword es:[edi], dx
nop
mov word [edi + 5], ss
push es
push es
cmp dl, al
insd dword es:[edi], dx
nop
xchg esp, eax
inc edi
push es
push es
push es
pop ecx
mov cl, dl
aas
and byte [edi], al
pop es
mov cl, ch
into
add dword [edi], 7
mov cl, dh
xor al, ah
pop es
pop es
popal
pop ecx
pop ecx
mov cl, bl
or ebp, edi
adc dword [edi], eax
pop es
pop es
pop es
push esp
dec ebp
push esp
inc esp
inc esi
dec esp
inc ebp
push eax
cmp cl, byte [edx - 0x2e77f435]
jo 0x517880
or byte [edi], al
popal
xchg edx, eax
pushfd
cmp eax, 6
push es
insd dword es:[edi], dx
xchg edx, eax
or dword [ebp - 0x70], ebp
mov word [ecx - 5], es
push es
push es
xchg edx, eax
xchg esp, eax
cmp eax, 6
push es
mov cl, al
or dword [eax + 0x6f88394], edx
push es
insd dword es:[edi], dx
xchg edx, eax
pushfd
inc ecx
sti
push es
push es
insd dword es:[edi], dx
nop
pushfd
push edi
add eax, 0x8c920606
jg 0x517832
push es
push es
insd dword es:[edi], dx
xchg edx, eax
invalid
retf