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

Disassembly:
push 0xffffffffffffffff
push 0x53bbe8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x598c90]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x598c90]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x90]
mov esi, edx
mov edx, dword [esp + 0x80]
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ebx
lea ebp, [esi + 0x20]
cmp edx, 0xfffffffc
je 0x5146c1
test edx, edx
je 0x5146b5
cmp edx, dword [esp + 0x88]
je 0x5146c1
call fcn.0051e9d3
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
cmp eax, dword [esp + 0x8c]
jne 0x5146dd
mov dword [edi + 4], eax
mov dword [edi], edx
mov eax, edi
jmp 0x514e55
cmp dword [esi + 8], 0
mov eax, dword [ebx + 0x1c]
mov bl, byte [esp + 0x94]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
jbe 0x5148ae
lea ecx, [ecx]
cmp word [ebp], 0
mov edi, dword [esp + 0x84]
mov esi, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
jne 0x5147a0
cmp edx, 0xfffffffc
je 0x514755
test edx, edx
jne 0x514731
call fcn.0051e9d3
mov edx, dword [esp + 0x80]
cmp dword [esi + 0x18], 8
jb 0x51473c
mov eax, dword [esi + 4]
jmp 0x51473f
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea eax, [eax + ecx*2]
cmp edi, eax
jb 0x514755
call fcn.0051e9d3
mov edx, dword [esp + 0x80]
movzx ecx, word [edi]
test bl, bl
je 0x514775
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov edx, dword [eax]
call fcn.0051d920
mov edx, dword [esp + 0x80]
movzx eax, ax
jmp 0x514778
movzx eax, cx
movzx ecx, word [ebp]
cmp ax, cx
je 0x5148d6
test cx, cx
jne 0x514898
mov edi, edi
add ebp, 2
cmp word [ebp], 0
je 0x514790
jmp 0x514898
cmp esi, 0xfffffffc
je 0x5147b7
test esi, esi
je 0x5147b2
cmp esi, dword [esp + 0x88]
je 0x5147b7
call fcn.0051e9d3
cmp edi, dword [esp + 0x8c]
je 0x51487c
cmp esi, 0xfffffffc
je 0x5147ef
test esi, esi
jne 0x5147d2
call fcn.0051e9d3
cmp dword [esi + 0x18], 8
jb 0x5147dd
mov eax, dword [esi + 4]
jmp 0x5147e0
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp edi, edx
jb 0x5147ef
call fcn.0051e9d3
movzx ecx, word [edi]
test bl, bl
je 0x514808
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov edx, dword [eax]
call fcn.0051d920
movzx eax, ax
jmp 0x51480b
movzx eax, cx
cmp ax, word [ebp]
jne 0x51487c
add ebp, 2
cmp esi, 0xfffffffc
je 0x51483f
test esi, esi
jne 0x514822
call fcn.0051e9d3
cmp dword [esi + 0x18], 8
jb 0x51482d
mov eax, dword [esi + 4]
jmp 0x514830
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp edi, edx
jb 0x51483f
call fcn.0051e9d3
add edi, 2
cmp word [ebp], 0
mov dword [esp + 0x30], edi
jne 0x5147a0
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x1c], 0
jne 0x5148e0
cmp esi, 0xfffffffc
je 0x51490c
test esi, esi
je 0x514907
cmp esi, dword [esp + 0x80]
jmp 0x514905
cmp word [ebp], 0
je 0x514851
mov eax, ebp
add eax, 2
cmp word [eax], 0
jne 0x514885
mov edx, dword [esp + 0x80]
lea ebp, [eax + 2]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [ecx + 8]
jb 0x514700
cmp edx, 0xfffffffc
je 0x514962
test edx, edx
jne 0x5148c7
call fcn.0051e9d3
mov edx, dword [esp + 0x80]
cmp dword [edx + 0x18], 8
jb 0x51494b
mov eax, dword [edx + 4]
jmp 0x51494e
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x1c], 0
je 0x5148fa
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x80]
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x514e53
cmp esi, 0xfffffffc
je 0x51490c
test esi, esi
je 0x514907
cmp esi, edx
je 0x51490c
call fcn.0051e9d3
cmp edi, dword [esp + 0x84]
jne 0x514934
lea ecx, [esp + 0x80]
call fcn.00506f30
mov edx, dword [eax]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x514e53
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x514e53
lea eax, [edx + 4]
mov ecx, dword [edx + 0x14]
lea edx, [eax + ecx*2]
cmp dword [esp + 0x84], edx
jb 0x514962
call fcn.0051e9d3
mov eax, dword [esp + 0x84]
movzx ecx, word [eax]
mov esi, dword [esp + 0x20]
test bl, bl
je 0x514986
mov eax, dword [esi]
mov edx, dword [eax]
call fcn.0051d920
movzx edi, ax
mov dword [esp + 0x24], edi
jmp 0x51498f
movzx ecx, cx
mov dword [esp + 0x24], ecx
mov edi, ecx
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x5149a3
cmp dword [ebx + 0x10], eax
je 0x514db0
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ecx
mov word [esp + 0x54], dx
mov dword [esp + 0x78], ecx
cmp eax, ecx
je 0x514b93
mov eax, dword [esp + 0x28]
test dword [eax + 0x24], 0x200000
jne 0x5149eb
mov cx, word [esp + 0x24]
mov edi, 1
mov word [esp + 0x54], cx
mov dword [esp + 0x64], edi
mov word [esp + 0x56], dx
jmp 0x514a40
xor eax, eax
lea ecx, [esp + 0x16]
push ecx
lea edx, [esp + 0x18]
mov word [esp + 0x1a], ax
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov word [esp + 0x20], di
call fcn.0050a0b0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 1
call fcn.00402570
cmp dword [esp + 0x4c], 8
mov byte [esp + 0x78], 0
jb 0x514a3c
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0051e446
add esp, 4
mov edi, dword [esp + 0x64]
cmp dword [ebx + 0xc], 0
mov dword [esp + 0x14], 0
jbe 0x514b93
xor edx, edx
cmp dx, word [ebp]
jne 0x514a7c
test edi, edi
je 0x514af0
cmp edi, 1
jne 0x514a7c
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x514a76
lea eax, [esp + 0x54]
cmp word [eax], 0
je 0x514af0
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x514a81
sub eax, edx
sar eax, 1
mov esi, edi
cmp edi, eax
jb 0x514a98
mov esi, eax
cmp dword [esp + 0x68], 8
mov edx, dword [esp + 0x54]
jae 0x514aa7
lea edx, [esp + 0x54]
mov ecx, ebp
test esi, esi
jbe 0x514ad5
lea ecx, [ecx]
mov bx, word [edx]
cmp bx, word [ecx]
jne 0x514ac5
add edx, 2
add ecx, 2
sub esi, 1
jne 0x514ab0
jmp 0x514ad5
mov dx, bx
cmp dx, word [ecx]
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 1
jne 0x514ae4
cmp edi, eax
jb 0x514b60
xor ecx, ecx
cmp edi, eax
setne cl
test ecx, ecx
jl 0x514b60
jmp 0x514af0
add ebp, 2
cmp word [ebp], 0
jne 0x514af0
add ebp, 2
xor eax, eax
cmp ax, word [ebp]
jne 0x514b2b
test edi, edi
je 0x514cac
cmp edi, 1
jne 0x514b2b
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x514b21
lea eax, [esp + 0x54]
cmp word [eax], 0
je 0x514cac
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x514b30
sub eax, edx
sar eax, 1
push eax
push ebp
push edi
push 0
lea ecx, [esp + 0x60]
call fcn.00505c70
test eax, eax
jle 0x514cac
mov edi, dword [esp + 0x64]
jmp 0x514b70
add ebp, 2
cmp word [ebp], 0
jne 0x514b60
add ebp, 2
lea ecx, [ecx]
add ebp, 2
cmp word [ebp], 0
jne 0x514b70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
add ebp, 2
mov dword [esp + 0x14], eax
cmp eax, dword [ecx + 0xc]
jb 0x514a52
mov esi, dword [esp + 0x18]
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x514d71
mov cx, word [esp + 0x24]
mov word [esp + 0x28], cx
xor edx, edx
lea eax, [esp + 0x2a]
push eax
lea ecx, [esp + 0x2c]
mov word [esp + 0x2e], dx
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x3c]
push edx
call fcn.00510f00
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 2
call fcn.00402570
cmp dword [esp + 0x4c], 8
mov byte [esp + 0x78], 0
jb 0x514bf9
mov eax, dword [esp + 0x38]
push eax
call fcn.0051e446
add esp, 4
mov esi, dword [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], cx
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], esi
cmp esi, edi
jbe 0x514d71
mov edi, dword [esp + 0x64]
xor edx, edx
cmp dx, word [ebp]
jne 0x514c51
test edi, edi
je 0x514dcf
cmp edi, 1
jne 0x514c51
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x514c47
lea eax, [esp + 0x54]
cmp word [eax], 0
je 0x514dcf
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x514c56
sub eax, edx
sar eax, 1
mov esi, edi
cmp edi, eax
jb 0x514c6d
mov esi, eax
cmp dword [esp + 0x68], 8
mov edx, dword [esp + 0x54]
jae 0x514c7c
lea edx, [esp + 0x54]
mov ecx, ebp
test esi, esi
jbe 0x514d3e
jmp 0x514c90
mov bx, word [edx]
cmp bx, word [ecx]
jne 0x514d2e
add edx, 2
add ecx, 2
sub esi, 1
jne 0x514c90
jmp 0x514d3e
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x1c], 0
mov eax, dword [esp + 0x80]
jne 0x514d03
cmp eax, 0xfffffffc
je 0x514cfb
test eax, eax
jne 0x514cd2
call fcn.0051e9d3
mov eax, dword [esp + 0x80]
cmp dword [eax + 0x18], 8
jb 0x514cdd
mov ecx, dword [eax + 4]
jmp 0x514ce0
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x84], ecx
jb 0x514cfb
call fcn.0051e9d3
mov eax, dword [esp + 0x80]
add dword [esp + 0x84], 2
cmp dword [esp + 0x68], 8
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x84]
mov dword [esi], eax
mov dword [esi + 4], edx
jb 0x514d27
mov eax, dword [esp + 0x54]
push eax
call fcn.0051e446
add esp, 4
mov eax, esi
jmp 0x514e55
mov dx, bx
cmp dx, word [ecx]
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 1
jne 0x514d49
cmp edi, eax
jb 0x514d51
xor ecx, ecx
cmp edi, eax
setne cl
test ecx, ecx
je 0x514dcf
add ebp, 2
cmp word [ebp], 0
jne 0x514d51
mov eax, dword [esp + 0x14]
inc eax
add ebp, 2
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x2c]
jb 0x514c23
cmp dword [esp + 0x68], 8
mov dword [esp + 0x78], 0xffffffff
jb 0x514d8d
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0051e446
add esp, 4
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], dx
mov eax, dword [ebx + 0x14]
push eax
push edi
mov ecx, esi
call fcn.005075a0
cmp al, 1
jne 0x514ddc
cmp byte [ebx + 0x1c], 0
mov eax, dword [esp + 0x80]
jne 0x514e43
jmp 0x514dfd
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x1c], 0
jmp 0x514cb4
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x514df0
push eax
push edi
mov ecx, esi
call fcn.005075a0
test al, al
je 0x514dc0
cmp byte [ebx + 0x1c], 0
mov eax, dword [esp + 0x80]
je 0x514e43
cmp eax, 0xfffffffc
je 0x514e3b
test eax, eax
jne 0x514e12
call fcn.0051e9d3
mov eax, dword [esp + 0x80]
cmp dword [eax + 0x18], 8
jb 0x514e1d
mov ecx, dword [eax + 4]
jmp 0x514e20
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x84], ecx
jb 0x514e3b
call fcn.0051e9d3
mov eax, dword [esp + 0x80]
add dword [esp + 0x84], 2
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x84]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, ecx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0051e437
add esp, 0x68
ret 0x18