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

Disassembly:
push 0xffffffffffffffff
push 0x603f97
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x631220]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 4], 0
jne 0x507016
call fcn.004ea3f0
mov edi, eax
xor ebp, ebp
cmp byte [ebx + 5], 0
mov dword [esp + 0xc0], edi
je 0x5063fa
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], ebp
mov byte [esp + 0xd0], 0
mov dword [esp + 0xcc], 0x4ca328
push 4
push 0x4caab4
lea ecx, [esp + 0x78]
mov dword [esp + 0xfc], ebp
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebp
mov byte [esp + 0x78], 0
call fcn.004ed2b0
mov dword [esp + 0x6c], 0x4ca328
mov byte [esp + 0xf4], 1
call fcn.004ea480
mov ecx, dword [eax + 0xfc]
movzx eax, word [0x6372c9]
push eax
call fcn.00542130
push eax
lea ecx, [esp + 0xa8]
call fcn.004e5a00
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0xb0]
mov byte [esp + 0xfc], 2
push eax
lea ecx, [esp + 0xdc]
call fcn.004ecec0
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xdc]
call fcn.004ecec0
cmp dword [esp + 0xbc], 0x10
mov dword [esp + 0xa4], 0x4ca328
jb 0x506330
push dword [esp + 0xa8]
call fcn.005df995
add esp, 4
cmp dword [esp + 0x84], 0x10
mov dword [esp + 0xbc], 0xf
mov dword [esp + 0xb8], 0
mov byte [esp + 0xa8], 0
mov byte [esp + 0xf4], 0
mov dword [esp + 0x6c], 0x4ca328
jb 0x506374
push dword [esp + 0x70]
call fcn.005df995
add esp, 4
cmp dword [esp + 0xe4], 0x10
lea eax, [esp + 0xd0]
push 0
cmovae eax, dword [esp + 0xd4]
push 0
push 2
push 0
push 2
push 0x40000000
push eax
mov eax, dword [edi + 0x208]
call eax
mov ebp, eax
mov dword [esp + 0xf4], 0xffffffff
xor eax, eax
mov dword [esp + 0xcc], 0x4ca328
cmp ebp, 0xffffffff
cmove ebp, eax
cmp dword [esp + 0xe4], 0x10
jb 0x5063dc
push dword [esp + 0xd0]
call fcn.005df995
add esp, 4
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], 0
mov byte [esp + 0xd0], 0
push 0
push 0x4ca174
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.004ed2b0
mov dword [esp + 0x14], 0x4ca328
push 0xc
push 0x4caabc
lea ecx, [esp + 0x3c]
mov dword [esp + 0xfc], 3
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.004ed2b0
mov dword [esp + 0x30], 0x4ca328
lea eax, [esp + 0x14]
mov byte [esp + 0xf4], 4
push eax
lea eax, [esp + 0x34]
mov ecx, ebx
push eax
push ebp
call fcn.00507240
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x30], 0x4ca328
jb 0x506494
push dword [esp + 0x34]
call fcn.005df995
add esp, 4
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x14], 0x4ca328
jb 0x5064cf
push dword [esp + 0x18]
call fcn.005df995
add esp, 4
mov eax, dword [ebx + 8]
mov esi, dword [eax]
cmp esi, eax
je 0x50656e
lea esp, [esp]
cmp dword [esi + 0x20], 0x10
lea eax, [esi + 0xc]
jb 0x5064eb
mov eax, dword [eax]
push eax
mov eax, dword [edi + 0x364]
call eax
push 0
push 0x4ca174
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.004ed2b0
mov dword [esp + 0x14], 0x4ca328
lea eax, [esp + 0x14]
mov dword [esp + 0xf4], 5
push eax
lea eax, [esi + 8]
mov ecx, ebx
push eax
push ebp
call fcn.00507240
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x14], 0x4ca328
jb 0x506563
push dword [esp + 0x18]
call fcn.005df995
add esp, 4
mov esi, dword [esi]
cmp esi, dword [ebx + 8]
jne 0x5064e0
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
cmp esi, eax
je 0x506726
jmp 0x506580
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x50658b
mov eax, dword [eax]
push eax
mov eax, dword [edi + 0x368]
call eax
push 0
push 0x4ca174
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.004ed2b0
mov dword [esp + 0x30], 0x4ca328
lea eax, [esi + 8]
mov dword [esp + 0xf4], 6
push eax
lea ecx, [esp + 0x18]
call fcn.005423d0
mov byte [esp + 0xf4], 7
test ebp, ebp
je 0x5066c5
mov edi, dword [0x638c68]
test edi, edi
jne 0x506642
push 0x4e4
call fcn.005df944
mov edi, eax
add esp, 4
mov dword [esp + 0x4c], edi
test edi, edi
je 0x506632
push 0x4e4
push 0
push edi
call fcn.005e0f30
add esp, 0xc
mov ecx, edi
call fcn.004e60e0
mov ecx, edi
mov byte [esp + 0xf4], 9
call fcn.004f4a10
jmp 0x506634
xor edi, edi
mov byte [esp + 0xf4], 7
mov dword [0x638c68], edi
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0xc8]
push 0
push ecx
push dword [esp + 0x30]
lea eax, [esp + 0x24]
mov dword [esp + 0xd4], 0
cmovae eax, dword [esp + 0x24]
push eax
mov eax, dword [edi + 0x348]
push ebp
call eax
cmp dword [esp + 0x48], 0x10
lea ecx, [esp + 0xc8]
push 0
push ecx
push dword [esp + 0x4c]
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
mov eax, dword [edi + 0x348]
push ebp
call eax
push 0
lea eax, [esp + 0xcc]
mov byte [esp + 0xcb], 0xa
push eax
push 1
lea eax, [esp + 0xd3]
push eax
mov eax, dword [edi + 0x348]
push ebp
call eax
mov edi, dword [esp + 0xc0]
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], 0x4ca328
jb 0x5066e0
push dword [esp + 0x18]
call fcn.005df995
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x30], 0x4ca328
jb 0x50671b
push dword [esp + 0x34]
call fcn.005df995
add esp, 4
mov esi, dword [esi]
cmp esi, dword [ebx + 0x10]
jne 0x506580
push 0
push 0x4ca174
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.004ed2b0
mov dword [esp + 0x14], 0x4ca328
push 0xe
push 0x4caacc
lea ecx, [esp + 0x3c]
mov dword [esp + 0xfc], 0xa
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.004ed2b0
mov dword [esp + 0x30], 0x4ca328
mov byte [esp + 0xf4], 0xb
test ebp, ebp
je 0x506870
mov esi, dword [0x638c68]
test esi, esi
jne 0x5067f4
push 0x4e4
call fcn.005df944
mov esi, eax
add esp, 4
mov dword [esp + 0x4c], esi
test esi, esi
je 0x5067e4
push 0x4e4
push 0
push esi
call fcn.005e0f30
add esp, 0xc
mov ecx, esi
call fcn.004e60e0
mov ecx, esi
mov byte [esp + 0xf4], 0xd
call fcn.004f4a10
jmp 0x5067e6
xor esi, esi
mov byte [esp + 0xf4], 0xb
mov dword [0x638c68], esi
cmp dword [esp + 0x48], 0x10
lea ecx, [esp + 0xc8]
push 0
push ecx
push dword [esp + 0x4c]
lea eax, [esp + 0x40]
mov dword [esp + 0xd4], 0
cmovae eax, dword [esp + 0x40]
push eax
mov eax, dword [esi + 0x348]
push ebp
call eax
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0xc8]
push 0
push ecx
push dword [esp + 0x30]
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x348]
push ebp
call eax
push 0
lea eax, [esp + 0xcc]
mov byte [esp + 0xcb], 0xa
push eax
push 1
lea eax, [esp + 0xd3]
push eax
mov eax, dword [esi + 0x348]
push ebp
call eax
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x30], 0x4ca328
jb 0x50688b
push dword [esp + 0x34]
call fcn.005df995
add esp, 4
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x14], 0x4ca328
jb 0x5068c6
push dword [esp + 0x18]
call fcn.005df995
add esp, 4
mov eax, dword [ebx + 0x18]
mov esi, dword [eax]
cmp esi, eax
je 0x506a30
cmp dword [esi + 0x20], 0x10
lea eax, [esi + 0xc]
jb 0x5068de
mov eax, dword [eax]
push eax
mov eax, dword [edi + 0x37c]
call eax
push 0
push 0x4ca174
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.004ed2b0
mov dword [esp + 0x14], 0x4ca328
mov dword [esp + 0xf4], 0xe
test ebp, ebp
je 0x5069ff
mov edi, dword [0x638c68]
test edi, edi
jne 0x506980
push 0x4e4
call fcn.005df944
mov edi, eax
add esp, 4
mov dword [esp + 0x4c], edi
test edi, edi
je 0x506970
push 0x4e4
push 0
push edi
call fcn.005e0f30
add esp, 0xc
mov ecx, edi
call fcn.004e60e0
mov ecx, edi
mov byte [esp + 0xf4], 0x10
call fcn.004f4a10
jmp 0x506972
xor edi, edi
mov byte [esp + 0xf4], 0xe
mov dword [0x638c68], edi
cmp dword [esi + 0x20], 0x10
lea eax, [esi + 0xc]
mov dword [esp + 0xc8], 0
jb 0x506996
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xcc]
push ecx
push dword [esi + 0x1c]
push eax
mov eax, dword [edi + 0x348]
push ebp
call eax
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0xc8]
push 0
push ecx
push dword [esp + 0x30]
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
mov eax, dword [edi + 0x348]
push ebp
call eax
push 0
lea eax, [esp + 0xcc]
mov byte [esp + 0xcb], 0xa
push eax
push 1
lea eax, [esp + 0xd3]
push eax
mov eax, dword [edi + 0x348]
push ebp
call eax
mov edi, dword [esp + 0xc0]
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x14], 0x4ca328
jb 0x506a25
push dword [esp + 0x18]
call fcn.005df995
add esp, 4
mov esi, dword [esi]
cmp esi, dword [ebx + 0x18]
jne 0x5068d3
mov eax, dword [ebx + 0x20]
mov esi, dword [eax]
cmp esi, eax
je 0x506be6
lea ecx, [ecx]
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x506a4b
mov eax, dword [eax]
push eax
mov eax, dword [edi + 0x380]
call eax
push 0
push 0x4ca174
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.004ed2b0
mov dword [esp + 0x14], 0x4ca328
lea eax, [esi + 8]
mov dword [esp + 0xf4], 0x11
push eax
lea ecx, [esp + 0x34]
call fcn.005423d0
mov byte [esp + 0xf4], 0x12
test ebp, ebp
je 0x506b85
mov edi, dword [0x638c68]
test edi, edi
jne 0x506b02
push 0x4e4
call fcn.005df944
mov edi, eax
add esp, 4
mov dword [esp + 0x4c], edi
test edi, edi
je 0x506af2
push 0x4e4
push 0
push edi
call fcn.005e0f30
add esp, 0xc
mov ecx, edi
call fcn.004e60e0
mov ecx, edi
mov byte [esp + 0xf4], 0x14
call fcn.004f4a10
jmp 0x506af4
xor edi, edi
mov byte [esp + 0xf4], 0x12
mov dword [0x638c68], edi
cmp dword [esp + 0x48], 0x10
lea ecx, [esp + 0xc8]
push 0
push ecx
push dword [esp + 0x4c]
lea eax, [esp + 0x40]
mov dword [esp + 0xd4], 0
cmovae eax, dword [esp + 0x40]
push eax
mov eax, dword [edi + 0x348]
push ebp
call eax
cmp dword [esp + 0x2c], 0x10
lea ecx, [esp + 0xc8]
push 0
push ecx
push dword [esp + 0x30]
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
mov eax, dword [edi + 0x348]
push ebp
call eax
push 0
lea eax, [esp + 0xcc]
mov byte [esp + 0xcb], 0xa
push eax
push 1
lea eax, [esp + 0xd3]
push eax
mov eax, dword [edi + 0x348]
push ebp
call eax
mov edi, dword [esp + 0xc0]
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x30], 0x4ca328
jb 0x506ba0
push dword [esp + 0x34]
call fcn.005df995
add esp, 4
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x14], 0x4ca328
jb 0x506bdb
push dword [esp + 0x18]
call fcn.005df995
add esp, 4
mov esi, dword [esi]
cmp esi, dword [ebx + 0x20]
jne 0x506a40
push 0
push 0x4ca174
lea ecx, [esp + 0x3c]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.004ed2b0
mov dword [esp + 0x30], 0x4ca328
push 0x17
push 0x4caadc
lea ecx, [esp + 0x20]
mov dword [esp + 0xfc], 0x15
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.004ed2b0
mov dword [esp + 0x14], 0x4ca328
lea eax, [esp + 0x30]
mov byte [esp + 0xf4], 0x16
push eax
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
push ebp
call fcn.00507240
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], 0x4ca328
jb 0x506c80
push dword [esp + 0x18]
call fcn.005df995
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x30], 0x4ca328
jb 0x506cbb
push dword [esp + 0x34]
call fcn.005df995
add esp, 4
mov eax, dword [ebx + 0x28]
mov esi, dword [eax]
cmp esi, eax
je 0x506de1
cmp dword [esi + 0x44], 0
je 0x506d46
lea eax, [esi + 0x18]
mov dword [esp + 0xc0], 0
cmp dword [eax + 0x14], 0x10
jb 0x506ce4
mov eax, dword [eax]
lea ecx, [esp + 0xc0]
push ecx
push 0xf003f
push 0
push eax
push dword [esi + 0x10]
mov eax, dword [edi + 0x484]
call eax
test eax, eax
jne 0x506dd6
cmp dword [esi + 0x48], 0x10
lea eax, [esi + 0x34]
jb 0x506d12
mov eax, dword [eax]
push eax
push dword [esp + 0xc4]
mov eax, dword [edi + 0x4c4]
call eax
push dword [esp + 0xc0]
mov eax, dword [edi + 0x2b4]
call eax
lea eax, [esi + 0x30]
mov ecx, ebx
push eax
lea eax, [esi + 0x14]
push eax
push ebp
call fcn.00507240
jmp 0x506dd6
cmp dword [esi + 0x28], 0
je 0x506dd6
cmp dword [esi + 0x2c], 0x10
lea eax, [esi + 0x18]
jb 0x506d5b
mov eax, dword [eax]
push eax
push dword [esi + 0x10]
mov eax, dword [edi + 0x4b4]
call eax
push 0
push 0x4ca174
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.004ed2b0
mov dword [esp + 0x14], 0x4ca328
lea eax, [esp + 0x14]
mov dword [esp + 0xf4], 0x17
push eax
lea eax, [esi + 0x14]
mov ecx, ebx
push eax
push ebp
call fcn.00507240
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x14], 0x4ca328
jb 0x506dd6
push dword [esp + 0x18]
call fcn.005df995
add esp, 4
mov esi, dword [esi]
cmp esi, dword [ebx + 0x28]
jne 0x506cc8
mov eax, dword [ebx + 0x30]
mov esi, dword [eax]
cmp esi, eax
je 0x507009
mov edi, edi
cmp dword [esi + 0x44], 0
je 0x506efb
lea eax, [esi + 0x18]
mov dword [esp + 0xc0], 0
cmp dword [eax + 0x14], 8
jb 0x506e10
mov eax, dword [eax]
lea ecx, [esp + 0xc0]
push ecx
push 0xf003f
push 0
push eax
push dword [esi + 0x10]
mov eax, dword [edi + 0x488]
call eax
test eax, eax
jne 0x506ffe
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x506e3e
mov eax, dword [eax]
push eax
push dword [esp + 0xc4]
mov eax, dword [edi + 0x4c8]
call eax
push dword [esp + 0xc0]
mov eax, dword [edi + 0x2b4]
call eax
lea eax, [esi + 0x30]
push eax
lea ecx, [esp + 0x34]
call fcn.005423d0
lea eax, [esi + 0x14]
mov dword [esp + 0xf4], 0x18
push eax
lea ecx, [esp + 0x18]
call fcn.005423d0
lea eax, [esp + 0x30]
mov byte [esp + 0xf4], 0x19
push eax
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
push ebp
call fcn.00507240
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x14], 0x4ca328
jb 0x506eb7
push dword [esp + 0x18]
call fcn.005df995
add esp, 4
cmp dword [esp + 0x48], 0x10
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x30], 0x4ca328
jb 0x506ffe
push dword [esp + 0x34]
call fcn.005df995
add esp, 4
jmp 0x506ffe
cmp dword [esi + 0x28], 0
je 0x506ffe
cmp dword [esi + 0x2c], 8
lea eax, [esi + 0x18]
jb 0x506f10
mov eax, dword [eax]
push eax
push dword [esi + 0x10]
mov eax, dword [edi + 0x4b8]
call eax
push 0
push 0x4ca174
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.004ed2b0
mov dword [esp + 0x50], 0x4ca328
lea eax, [esi + 0x14]
mov dword [esp + 0xf4], 0x1a
push eax
lea ecx, [esp + 0x8c]
call fcn.005423d0
lea eax, [esp + 0x50]
mov byte [esp + 0xf4], 0x1b
push eax
lea eax, [esp + 0x8c]
mov ecx, ebx
push eax
push ebp
call fcn.00507240
cmp dword [esp + 0xa0], 0x10
mov dword [esp + 0x88], 0x4ca328
jb 0x506fa5
push dword [esp + 0x8c]
call fcn.005df995
add esp, 4
cmp dword [esp + 0x68], 0x10
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
mov dword [esp + 0xf4], 0xffffffff
mov dword [esp + 0x50], 0x4ca328
jb 0x506fe9
push dword [esp + 0x54]
call fcn.005df995
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
mov esi, dword [esi]
cmp esi, dword [ebx + 0x30]
jne 0x506df0
test ebp, ebp
je 0x507016
mov eax, dword [edi + 0x214]
push ebp
call eax
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.005e0482
add esp, 0xe4
ret