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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x60
mov dword [esp + 0x14], ebx
call fcn.0053b0a0
push 0x200
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xff
call fcn.004c3370
mov edi, dword [ebp + 0xc]
add esp, 8
cmp edi, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov word [eax], bx
je 0x50cd38
mov eax, dword [ebp + 0x10]
push 1
push 0x10090810
push eax
call fcn.004c41f0
add esp, 0xc
test eax, eax
jne 0x50cd38
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004c4460
add esp, 4
test eax, eax
jne 0x50cd38
push 0x10082b04
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004c1990
mov esi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x28]
call fcn.004c1990
cmp esi, ebx
je 0x50c847
push esi
call fcn.004c3420
add esp, 4
mov eax, dword [esp + 0x28]
lea eax, [eax*4 + 0x60]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.004c7920
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
push edx
push esi
call fcn.004c3240
lea eax, [esi + 0x38]
push eax
push edi
call fcn.00524b70
mov ecx, dword [esp + 0x34]
add esp, 0x10
push ecx
call dword [0x10082050]
add eax, eax
mov dword [esi + 0x3c], eax
mov edx, dword [esp + 0x24]
push edx
lea eax, [esi + 0x5e]
push eax
call dword [0x10082064]
lea ecx, [esi + 0x20]
push ecx
lea edx, [esi + 0x18]
push edx
lea eax, [esi + 0x10]
push eax
add esi, 8
push esi
push edi
call fcn.00524c20
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0053b110
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call fcn.0050c5f0
cmp dword [ebp + 0x1c], ebx
jne 0x50c903
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov dword [esp + 0x14], 1
call edx
mov ecx, eax
call fcn.0050ab40
test eax, eax
mov byte [esp + 0x23], bl
je 0x50c908
mov byte [esp + 0x23], 1
test byte [esp + 0x10], 1
je 0x50c918
lea ecx, [esp + 0x38]
call fcn.00525460
cmp byte [esp + 0x23], bl
lea ecx, [esp + 0x40]
je 0x50cb31
mov eax, dword [ebp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], ebx
call fcn.004c5c00
mov esi, dword [eax]
add esp, 8
push ebx
push ebx
push 0x20
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x54]
call fcn.0053ae20
mov ecx, eax
call fcn.0050aab0
push eax
push ebx
push 0x40
push esi
lea ecx, [esp + 0x44]
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
push eax
push ebx
lea ecx, [esp + 0xb8]
call fcn.0050aa80
mov ecx, eax
call fcn.0050aab0
push eax
push 0x120089
lea edx, [esp + 0x38]
push edx
call fcn.004d0a30
lea ecx, [esp + 0x40]
call fcn.004c1ad0
push 0x100
lea ecx, [esp + 0x34]
call fcn.004c7920
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x34]
mov esi, dword [0x1018efa4]
push ebx
push eax
mov eax, dword [esp + 0x38]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
add esi, 0x4f0
call fcn.0053ae20
mov ecx, eax
call fcn.0050aab0
mov ecx, dword [esp + 0x28]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push ebx
push ebx
push ebx
push ecx
mov ecx, esi
call eax
call eax
cmp eax, 0xc0000004
je 0x50c9a4
cmp eax, 0x80000005
je 0x50c9a4
cmp eax, 0xc0000023
je 0x50c9a4
cmp eax, ebx
jne 0x50cb23
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x3c]
mov edi, esi
add esi, 0x3c
shr eax, 1
add eax, 1
add eax, eax
push eax
mov dword [esp + 0x50], eax
call fcn.004c32d0
mov edx, dword [esi]
push edx
lea ecx, [edi + 0x5e]
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.004c3260
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x5c]
push 1
push 0x10082b04
push eax
mov word [ecx + eax - 2], bx
call fcn.004c41f0
add esp, 0x1c
test eax, eax
jne 0x50cb0f
push 6
lea eax, [edi + 0x5e]
push 0x10090808
push eax
mov dword [esi], 6
mov byte [edi + 0x44], 6
call fcn.004c3260
mov dword [edi], ebx
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp eax, 0x6c
je 0x50cac7
mov edi, dword [esp + 0x30]
push 0x6c
mov esi, eax
call fcn.004c32d0
add esp, 4
cmp esi, 0x6c
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x6c
jb 0x50caa7
mov esi, 0x6c
xor eax, eax
cmp esi, ebx
jbe 0x50cabe
mov dl, byte [eax + edi]
mov ecx, dword [esp + 0x30]
mov byte [eax + ecx], dl
add eax, 1
cmp eax, esi
jb 0x50caad
push edi
call fcn.004c3420
add esp, 4
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x30]
push edx
call fcn.0053b110
push 0x10090808
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004c1990
lea eax, [esp + 0x40]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.0050c5f0
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x50cb0f
push eax
call fcn.004c3420
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x50cb20
push eax
call fcn.004c3420
add esp, 4
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
call fcn.004c4570
jmp 0x50cd27
push 0x10090808
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.004c1990
mov edx, dword [esp + 0x40]
push edx
lea ecx, [esp + 0x28]
call fcn.004c1990
lea ecx, [esp + 0x40]
call fcn.004c1ad0
mov eax, dword [esp + 0x28]
lea eax, [eax*4 + 0x60]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], eax
call fcn.004c7920
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
push eax
push esi
call fcn.004c3240
mov edx, dword [edi]
mov edx, dword [edx + 0x44]
add esp, 8
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x10]
push edx
call eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x50cbb5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
lea ecx, [esp + 0x18]
call fcn.0050abc0
sub ax, 1
movzx eax, ax
cmp ax, bx
mov dword [esp + 0x14], eax
je 0x50cc06
jmp 0x50cbe4
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.00525500
cmp ax, 0x5c
je 0x50cc14
mov eax, dword [esp + 0x14]
add eax, 0xffff
cmp ax, bx
mov dword [esp + 0x14], eax
jne 0x50cbe0
lea ecx, [esp + 0x18]
call fcn.0050aab0
mov word [eax], bx
jmp 0x50cc28
lea ecx, [esp + 0x18]
call fcn.0050aab0
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx - 2]
mov word [eax], dx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.0053aad0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esi + 0x38]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
mov eax, dword [esp + 0x24]
push eax
call dword [0x10082050]
add eax, eax
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esi + 0x5e]
push edx
call dword [0x10082064]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.0053aad0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.0053aad0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.0053aad0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.0053aad0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
add esi, 0x20
push esi
lea eax, [esp + 0x3c]
push eax
call edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.0053b110
lea ecx, [esp + 0x24]
push ecx
mov edx, ecx
mov ecx, dword [ebp + 0x18]
push edx
call fcn.0050c5f0
lea ecx, [esp + 0x18]
call fcn.00525460
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x50cd27
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x50cd38
push eax
call fcn.004c3420
add esp, 4
cmp dword [ebp + 0x1c], ebx
je 0x50cfcb
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x4c], eax
je 0x50d160
lea ecx, [esp + 0x14]
push 4
push ecx
call fcn.004c3240
add esp, 8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [ebp + 0x28]
call fcn.0050c390
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x50cfa6
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
test eax, eax
jne 0x50cfa6
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
test eax, eax
jne 0x50cfa6
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0xa8]
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
push eax
call fcn.00524360
add esp, 8
test eax, eax
je 0x50cfa6
mov edi, dword [esp + 0x28]
lea edi, [edi*4 + 0x60]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004c7920
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.004c3240
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
add esp, 8
lea edx, [esp + 0x10]
push edx
call eax
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
lea ebx, [esi + 0x38]
push ebx
push 0x1008241c
lea ecx, [esp + 0xc0]
mov dword [esp + 0x38], eax
add edi, 0x18
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
mov ecx, dword [esp + 0x34]
mov edx, dword [edi]
push eax
call edx
test dword [ebx], 0x10
jne 0x50ce96
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esp + 0x38]
push eax
push 0x1008241c
lea ecx, [esp + 0xb0]
add edi, 0x20
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov eax, dword [esp + 0x24]
push eax
call dword [0x10082050]
add eax, eax
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esi + 0x5e]
push edx
call dword [0x10082064]
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esi + 8]
push eax
push 0x1008241c
lea ecx, [esp + 0xb8]
add edi, 0x24
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esi + 0x18]
push eax
push 0x1008241c
lea ecx, [esp + 0xc8]
add edi, 0x28
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esi + 0x10]
push eax
push 0x1008241c
lea ecx, [esp + 0x90]
add edi, 0x2c
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
add esi, 0x20
push esi
push 0x1008241c
lea ecx, [esp + 0x48]
mov ebx, eax
add edi, 0x30
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0053b110
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call fcn.0050c5f0
lea ecx, [esp + 0x10]
call fcn.004e4310
lea ecx, [esp + 0x18]
call fcn.004c4ae0
lea ecx, [esp + 0x14]
call fcn.004e4310
xor ebx, ebx
jmp 0x50cfaf
lea ecx, [esp + 0x14]
call fcn.004e4310
cmp dword [esp + 0x4c], ebx
jne 0x50cd52
lea ecx, [esp + 0x24]
call fcn.004c1ad0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea ecx, [esp + 0x5c]
call fcn.00525340
mov edx, dword [edi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x50]
push eax
push ebx
mov ecx, edi
call edx
test eax, eax
jne 0x50d157
jmp 0x50cff0
lea ecx, [esp + 0x5c]
call fcn.0050aab0
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.004c5160
add esp, 8
push eax
lea ecx, [esp + 0x28]
call fcn.004c22f0
lea ecx, [esp + 0x88]
call fcn.004c1ad0
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.0050aae0
mov ecx, eax
call fcn.0050aab0
push eax
call fcn.00524360
add esp, 8
test eax, eax
jne 0x50d054
lea ecx, [esp + 0x5c]
call fcn.00525460
jmp 0x50d137
mov edi, dword [esp + 0x28]
lea edi, [edi*4 + 0x60]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004c7920
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.004c3240
mov eax, dword [esp + 0x60]
add esp, 8
mov dword [esi + 0x38], eax
test dword [esp + 0x58], 0x10
jne 0x50d0a8
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x28], eax
mov edx, dword [esp + 0x54]
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov eax, dword [esp + 0x24]
push eax
call dword [0x10082050]
add eax, eax
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esi + 0x5e]
push edx
call dword [0x10082064]
mov eax, dword [esp + 0x68]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x70]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x74]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x80]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.0053b110
lea eax, [esp + 0x24]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.0050c5f0
lea ecx, [esp + 0x18]
call fcn.004c4ae0
lea ecx, [esp + 0x5c]
call fcn.00525460
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x5c]
call fcn.00525340
mov edx, dword [edi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x50]
push eax
push ebx
mov ecx, edi
call edx
test eax, eax
je 0x50cff0
lea ecx, [esp + 0x5c]
call fcn.00525460
lea ecx, [esp + 0x24]
call fcn.004c1ad0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24