Function at 0x50b580
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50c0a3
sub esp, 0x6c
mov eax, 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x23], 0
lea eax, [0x537f4f]
mov dword [esp], eax
mov dword [esp + 4], 7
call fcn.00507fc0
lea eax, [0x544144]
mov dword [esp + 0x68], eax
mov byte [esp + 0x23], 1
movzx eax, byte [esp + 0x8c]
test al, al
je 0x50b615
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea ecx, [0x50c0b0]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x44], ecx
lea ebx, [esp + 0x40]
mov dword [esp + 0x64], ebx
mov byte [esp + 0x23], 3
mov edx, 3
jmp 0x50b621
mov ecx, dword [esp + 0x88]
mov edx, 1
mov ebx, dword [esp + 0x84]
movzx ebp, byte [ebx]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x50b665
test dl, 2
je 0x50b650
and edx, 0xfffffffd
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], dl
mov eax, dword [esp + 0x64]
mov ecx, dword [eax]
mov edx, eax
call ecx
movzx edx, byte [esp + 0x22]
test dl, 1
je 0x50b661
and edx, 0xfffffffe
mov byte [esp + 0x23], dl
call fcn.0050eed0
add esp, 0x6c
ret
mov byte [esp + 0x22], dl
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x60], ebx
lea ebp, [esp + 0x54]
mov dword [esp], ebp
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004ea670
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004b1cc0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test eax, eax
je 0x50b7d1
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov dword [esp], 0
call fcn.004517e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x80]
movzx ebp, word [ebx + 8]
movzx esi, byte [ebx + 6]
movzx ebx, word [ebx + 4]
mov word [esp], bp
xchg esi, eax
mov byte [esp + 2], al
xchg esi, eax
mov word [esp + 4], bx
mov byte [esp + 6], 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.00507e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call fcn.004048a0
mov eax, dword [esp + 0x84]
mov byte [eax], 0
movzx eax, byte [esp + 0x22]
test al, 2
je 0x50b7bc
and eax, 0xfffffffd
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x64]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x22]
test al, 1
je 0x50b7cd
and eax, 0xfffffffe
mov byte [esp + 0x23], al
call fcn.0050eed0
add esp, 0x6c
ret
mov eax, dword [edx + 0x10]
mov dword [esp], ebx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x50ba00
mov dword [esp], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
call fcn.004517e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x80]
movzx ebp, word [ebx + 8]
movzx esi, byte [ebx + 6]
movzx edi, word [ebx + 4]
mov word [esp], bp
xchg esi, eax
mov byte [esp + 2], al
xchg esi, eax
mov word [esp + 4], di
mov byte [esp + 6], 8
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.00507e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.004048a0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x60], ebx
lea ebp, [esp + 0x54]
mov dword [esp], ebp
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004ea670
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00505600
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test eax, eax
jne 0x50b920
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
xor eax, eax
jmp 0x50c07c
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov dword [esp], 0
call fcn.004517e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x80]
movzx ebp, word [ebx + 8]
movzx esi, byte [ebx + 6]
movzx ebx, word [ebx + 4]
mov word [esp], bp
xchg esi, eax
mov byte [esp + 2], al
xchg esi, eax
mov word [esp + 4], bx
mov byte [esp + 6], 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.00507e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call fcn.004048a0
mov eax, dword [esp + 0x84]
mov byte [eax], 0
movzx eax, byte [esp + 0x22]
test al, 2
je 0x50b9eb
and eax, 0xfffffffd
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x64]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x22]
test al, 1
je 0x50b9fc
and eax, 0xfffffffe
mov byte [esp + 0x23], al
call fcn.0050eed0
add esp, 0x6c
ret
mov dword [esp], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
call fcn.004517e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x80]
movzx ebp, word [ebx + 8]
movzx esi, byte [ebx + 6]
movzx edi, word [ebx + 4]
mov word [esp], bp
xchg esi, eax
mov byte [esp + 2], al
xchg esi, eax
mov word [esp + 4], di
mov byte [esp + 6], 5
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.00507e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.004048a0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004ea670
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004afa10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x50bb40
mov dword [esp + 0x3c], edx
jmp 0x50bcaf
mov eax, dword [eax + 0x10]
mov dword [esp], ecx
call eax
mov dword [esp], 0
call fcn.004517e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x80]
movzx ebp, word [ebx + 8]
movzx esi, byte [ebx + 6]
movzx ebx, word [ebx + 4]
mov word [esp], bp
xchg esi, eax
mov byte [esp + 2], al
xchg esi, eax
mov word [esp + 4], bx
mov byte [esp + 6], 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.00507e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call fcn.004048a0
mov eax, dword [esp + 0x84]
mov byte [eax], 0
movzx eax, byte [esp + 0x22]
test al, 2
je 0x50bc0b
and eax, 0xfffffffd
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x64]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x22]
test al, 1
je 0x50bc1c
and eax, 0xfffffffe
mov byte [esp + 0x23], al
call fcn.0050eed0
add esp, 0x6c
ret
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0xffff
mov edx, dword [esp + 0x80]
movzx ebx, word [edx + 8]
movzx ebp, byte [edx + 6]
movzx esi, word [edx + 4]
mov word [esp], bx
xchg ebp, eax
mov byte [esp + 2], al
xchg ebp, eax
mov word [esp + 4], si
mov byte [esp + 6], 6
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0xffff
call fcn.00507e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.004048a0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x84]
movzx ecx, byte [eax]
test cl, cl
je 0x50beb3
lea eax, [0x51ed20]
mov dword [esp], eax
mov dword [esp + 4], 0xffff
mov dword [esp + 8], 0xffff
call fcn.0044b8b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xffff
mov dword [esp + 0xc], 0xffff
call fcn.004af250
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
test eax, eax
jne 0x50bd30
cmp ecx, 0xffff
jbe 0x50bc20
jmp 0x50bfab
mov ecx, dword [0x62c4dc]
cmp dword [0x62c4d8], edx
jne 0x50bd6b
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ebp
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004035c0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x50be23
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x34]
mov eax, dword [eax + 0x10]
mov dword [esp], ebp
call eax
mov dword [esp], 0
call fcn.004517e0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x80]
movzx ebp, word [ebx + 8]
movzx esi, byte [ebx + 6]
movzx edi, word [ebx + 4]
mov word [esp], bp
xchg esi, eax
mov byte [esp + 2], al
xchg esi, eax
mov word [esp + 4], di
mov byte [esp + 6], 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
call fcn.00507e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.004048a0
mov eax, dword [esp + 0x84]
mov byte [eax], 0
movzx ecx, byte [esp + 0x8c]
test cl, cl
jmp 0x50beea
mov eax, dword [esp + 0x80]
movzx ecx, word [eax + 8]
movzx edx, byte [eax + 6]
movzx ebx, word [eax + 4]
mov word [esp], cx
mov byte [esp + 2], dl
mov word [esp + 4], bx
mov byte [esp + 6], 7
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00507e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea ecx, [esp + 0x48]
mov dword [esp + 4], ecx
call fcn.004048a0
movzx eax, byte [esp + 0x8c]
test al, al
mov eax, dword [esp + 0x84]
jmp 0x50beea
movzx eax, byte [esp + 0x22]
test al, 2
je 0x50bed5
and eax, 0xfffffffd
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x64]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x22]
test al, 1
je 0x50bee6
and eax, 0xfffffffe
mov byte [esp + 0x23], al
call fcn.0050eed0
add esp, 0x6c
ret
je 0x50bf74
movzx eax, byte [eax]
test al, al
je 0x50bf74
mov eax, dword [esp + 0x80]
movzx ecx, word [eax + 8]
movzx edx, byte [eax + 6]
movzx eax, word [eax + 4]
mov word [esp], cx
mov byte [esp + 2], dl
mov word [esp + 4], ax
mov byte [esp + 6], 9
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00507e20
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call fcn.004048a0
movzx eax, byte [esp + 0x22]
test al, 2
je 0x50bf96
and eax, 0xfffffffd
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov edx, dword [esp + 0x64]
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 0x22]
test al, 1
je 0x50bfa7
and eax, 0xfffffffe
mov byte [esp + 0x23], al
call fcn.0050eed0
add esp, 0x6c
ret
mov edx, 0xffff
call fcn.00464620
mov dword [esp + 0x2c], eax
lea ecx, [edx + eax*8]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov ebx, dword [ebx + 0x1c]
mov dword [esp], ecx
call ebx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov edx, dword [esp + 0x78]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.004ea670
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x14], ecx
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x1c], 0
call fcn.0050b580
mov eax, dword [esp + 0x2c]
inc eax
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
cmp eax, ebx
jl 0x50bfb5
movzx ecx, byte [esp + 0x8c]
test cl, cl
mov eax, dword [esp + 0x84]
jmp 0x50beea
call fcn.00463190
jmp fcn.0050b580