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

Disassembly:
push 0xffffffffffffffff
push 0x4e0868
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x50f52c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f52c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x90]
mov esi, edx
mov ebp, ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
lea ebx, [esi + 0x20]
cmp edi, 0xfffffffc
je 0x498fe1
test edi, edi
je 0x498fd5
cmp edi, dword [esp + 0x88]
je 0x498fe1
call fcn.004b32e0
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x84]
cmp eax, dword [esp + 0x8c]
jne 0x498ffe
mov dword [ebp + 4], eax
mov dword [ebp], edi
mov eax, ebp
jmp 0x499852
cmp dword [esi + 8], 0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
jbe 0x4991d9
lea ebx, [ebx]
cmp word [ebx], 0
mov ebp, dword [esp + 0x84]
mov esi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebp
jne 0x4990c1
cmp edi, 0xfffffffc
je 0x499074
test edi, edi
jne 0x499050
call fcn.004b32e0
mov edi, dword [esp + 0x80]
cmp dword [esi + 0x18], 8
jb 0x49905b
mov eax, dword [esi + 4]
jmp 0x49905e
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp ebp, edx
jb 0x499074
call fcn.004b32e0
mov edi, dword [esp + 0x80]
cmp byte [esp + 0x94], 0
movzx ecx, word [ebp]
je 0x49909b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov edx, dword [eax]
call fcn.004a0d60
mov edi, dword [esp + 0x80]
movzx eax, ax
jmp 0x49909e
movzx eax, cx
movzx ecx, word [ebx]
cmp ax, cx
je 0x499201
test cx, cx
jne 0x4991c3
add ebx, 2
cmp word [ebx], 0
je 0x4990b3
jmp 0x4991c3
cmp esi, 0xfffffffc
je 0x4990d8
test esi, esi
je 0x4990d3
cmp esi, dword [esp + 0x88]
je 0x4990d8
call fcn.004b32e0
cmp ebp, dword [esp + 0x8c]
je 0x4991a2
cmp esi, 0xfffffffc
je 0x499110
test esi, esi
jne 0x4990f3
call fcn.004b32e0
cmp dword [esi + 0x18], 8
jb 0x4990fe
mov eax, dword [esi + 4]
jmp 0x499101
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp ebp, edx
jb 0x499110
call fcn.004b32e0
cmp byte [esp + 0x94], 0
movzx ecx, word [ebp]
je 0x499130
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov edx, dword [eax]
call fcn.004a0d60
movzx eax, ax
jmp 0x499133
movzx eax, cx
cmp ax, word [ebx]
jne 0x4991a2
add ebx, 2
cmp esi, 0xfffffffc
je 0x499166
test esi, esi
jne 0x499149
call fcn.004b32e0
cmp dword [esi + 0x18], 8
jb 0x499154
mov eax, dword [esi + 4]
jmp 0x499157
lea eax, [esi + 4]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ecx*2]
cmp ebp, edx
jb 0x499166
call fcn.004b32e0
add ebp, 2
cmp word [ebx], 0
mov dword [esp + 0x30], ebp
jne 0x4990c1
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x1c], 0
jne 0x49920b
cmp esi, 0xfffffffc
je 0x499239
test esi, esi
je 0x499234
cmp esi, dword [esp + 0x80]
jmp 0x499232
cmp word [ebx], 0
je 0x499177
mov eax, ebx
lea ebx, [ebx]
add eax, 2
cmp word [eax], 0
jne 0x4991b0
mov edi, dword [esp + 0x80]
lea ebx, [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 0x499020
cmp edi, 0xfffffffc
je 0x49929a
test edi, edi
jne 0x4991f2
call fcn.004b32e0
mov edi, dword [esp + 0x80]
cmp dword [edi + 0x18], 8
jb 0x49927c
mov eax, dword [edi + 4]
jmp 0x49927f
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x1c], 0
je 0x499227
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x80]
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x499852
cmp esi, 0xfffffffc
je 0x499239
test esi, esi
je 0x499234
cmp esi, edi
je 0x499239
call fcn.004b32e0
cmp ebp, dword [esp + 0x84]
jne 0x499263
lea ecx, [esp + 0x80]
call fcn.00415d00
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x499852
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x499852
lea eax, [edi + 4]
mov ecx, dword [edi + 0x14]
lea edx, [eax + ecx*2]
cmp dword [esp + 0x84], edx
jb 0x49929a
call fcn.004b32e0
mov edi, dword [esp + 0x80]
cmp byte [esp + 0x94], 0
mov eax, dword [esp + 0x84]
movzx ecx, word [eax]
je 0x4992c7
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
mov edx, dword [eax]
call fcn.004a0d60
mov edi, dword [esp + 0x80]
movzx ecx, ax
jmp 0x4992ca
movzx ecx, cx
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x28], ecx
test eax, eax
jne 0x4992e2
cmp dword [esi + 0x10], eax
je 0x49974a
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebp
mov word [esp + 0x54], dx
mov dword [esp + 0x78], ebp
cmp eax, ebp
je 0x4994c9
mov eax, dword [esp + 0x24]
test dword [eax + 8], 0x200000
jne 0x499327
mov word [esp + 0x54], cx
mov ebp, 1
xor ecx, ecx
mov dword [esp + 0x64], ebp
mov word [esp + 0x56], cx
jmp 0x499384
mov word [esp + 0x14], cx
xor edx, edx
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x18]
mov word [esp + 0x1a], dx
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
call fcn.004901b0
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 1
call fcn.00401750
cmp dword [esp + 0x4c], 8
mov byte [esp + 0x78], 0
jb 0x499379
mov eax, dword [esp + 0x38]
push eax
call fcn.004b29fa
add esp, 4
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x80]
cmp dword [esi + 0xc], 0
mov dword [esp + 0x14], 0
jbe 0x4994c9
xor ecx, ecx
cmp cx, word [ebx]
jne 0x4993bf
test ebp, ebp
je 0x499424
cmp ebp, 1
jne 0x4993bf
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x4993b9
lea eax, [esp + 0x54]
cmp word [eax], 0
je 0x499424
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4993c4
sub eax, edx
sar eax, 1
mov esi, ebp
cmp ebp, eax
jb 0x4993db
mov esi, eax
cmp dword [esp + 0x68], 8
mov edx, dword [esp + 0x54]
jae 0x4993ea
lea edx, [esp + 0x54]
mov ecx, ebx
test esi, esi
jbe 0x499415
mov di, word [edx]
cmp di, word [ecx]
jne 0x499405
add edx, 2
add ecx, 2
sub esi, 1
jne 0x4993f0
jmp 0x499415
mov dx, di
cmp dx, word [ecx]
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 1
jne 0x499420
cmp ebp, eax
jb 0x499490
xor ecx, ecx
cmp ebp, eax
setne cl
test ecx, ecx
jl 0x499490
add ebx, 2
cmp word [ebx], 0
jne 0x499424
add ebx, 2
xor eax, eax
cmp ax, word [ebx]
jne 0x49945d
test ebp, ebp
je 0x4995dc
cmp ebp, 1
jne 0x49945d
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x499453
lea eax, [esp + 0x54]
cmp word [eax], 0
je 0x4995dc
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499462
sub eax, edx
sar eax, 1
push eax
push ebx
push ebp
push 0
lea ecx, [esp + 0x60]
call fcn.00401fe0
test eax, eax
jle 0x4995dc
mov ebp, dword [esp + 0x64]
jmp 0x4994a0
add ebx, 2
cmp word [ebx], 0
jne 0x499490
add ebx, 2
lea esp, [esp]
add ebx, 2
cmp word [ebx], 0
jne 0x4994a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
add ebx, 2
mov dword [esp + 0x14], eax
cmp eax, dword [ecx + 0xc]
jb 0x499396
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x10], 0
je 0x499710
mov cx, word [esp + 0x28]
mov word [esp + 0x24], cx
xor edx, edx
lea eax, [esp + 0x26]
push eax
lea ecx, [esp + 0x28]
mov word [esp + 0x2a], dx
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
call fcn.00494d70
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 2
call fcn.00401750
mov ebp, 8
mov byte [esp + 0x78], 0
cmp dword [esp + 0x4c], ebp
jb 0x499533
mov eax, dword [esp + 0x38]
push eax
call fcn.004b29fa
add esp, 4
mov eax, dword [esi + 0x10]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ecx
mov word [esp + 0x38], dx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
cmp eax, ecx
jbe 0x499709
mov edi, dword [esp + 0x64]
nop
xor eax, eax
cmp ax, word [ebx]
jne 0x49958c
test edi, edi
je 0x4996aa
cmp edi, 1
jne 0x49958c
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], ebp
jae 0x499582
lea eax, [esp + 0x54]
cmp word [eax], 0
je 0x4996aa
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499591
sub eax, edx
sar eax, 1
mov esi, edi
cmp edi, eax
jb 0x4995a8
mov esi, eax
mov edx, dword [esp + 0x54]
cmp dword [esp + 0x68], ebp
jae 0x4995b6
lea edx, [esp + 0x54]
mov ecx, ebx
test esi, esi
jbe 0x49966e
mov bp, word [edx]
cmp bp, word [ecx]
jne 0x49965e
add edx, 2
add ecx, 2
sub esi, 1
jne 0x4995c0
jmp 0x49966e
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x1c], 0
mov eax, dword [esp + 0x80]
jne 0x499633
cmp eax, 0xfffffffc
je 0x49962b
test eax, eax
jne 0x499602
call fcn.004b32e0
mov eax, dword [esp + 0x80]
cmp dword [eax + 0x18], 8
jb 0x49960d
mov ecx, dword [eax + 4]
jmp 0x499610
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x84], ecx
jb 0x49962b
call fcn.004b32e0
mov eax, dword [esp + 0x80]
add dword [esp + 0x84], 2
cmp dword [esp + 0x68], 8
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x84]
mov dword [esi + 4], edx
mov dword [esi], eax
jb 0x499657
mov eax, dword [esp + 0x54]
push eax
call fcn.004b29fa
add esp, 4
mov eax, esi
jmp 0x499852
mov dx, bp
cmp dx, word [ecx]
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 1
jne 0x499679
cmp edi, eax
jb 0x499680
xor ecx, ecx
cmp edi, eax
setne cl
test ecx, ecx
je 0x4996a5
lea ecx, [ecx]
add ebx, 2
cmp word [ebx], 0
jne 0x499680
mov eax, dword [esp + 0x14]
inc eax
add ebx, 2
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x2c]
jae 0x499709
mov ebp, 8
jmp 0x499560
mov ebp, 8
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x1c], 0
mov eax, dword [esp + 0x80]
jne 0x499700
cmp eax, 0xfffffffc
je 0x4996f8
test eax, eax
jne 0x4996d0
call fcn.004b32e0
mov eax, dword [esp + 0x80]
cmp dword [eax + 0x18], ebp
jb 0x4996da
mov ecx, dword [eax + 4]
jmp 0x4996dd
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx*2]
cmp dword [esp + 0x84], ecx
jb 0x4996f8
call fcn.004b32e0
mov eax, dword [esp + 0x80]
add dword [esp + 0x84], 2
cmp dword [esp + 0x68], ebp
jmp 0x499638
mov edi, dword [esp + 0x80]
cmp dword [esp + 0x68], 8
mov dword [esp + 0x78], 0xffffffff
jb 0x499733
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004b29fa
mov edi, dword [esp + 0x84]
add esp, 4
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], dx
mov ebp, dword [esp + 0x18]
mov esi, dword [ebp + 0x14]
mov ebx, dword [esp + 0x28]
mov edx, esi
and edx, 0x3ff
je 0x499778
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
call fcn.004a0e10
mov edi, dword [esp + 0x80]
test al, al
jne 0x499798
test esi, 0x800
je 0x49978a
mov ecx, 0x100
cmp bx, cx
ja 0x499798
test esi, 0x400
je 0x4997a4
cmp bx, 0x5f
jne 0x4997a4
cmp byte [ebp + 0x1c], 0
jne 0x499842
jmp 0x4997fc
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4997f6
mov edx, esi
and edx, 0x3ff
je 0x4997ce
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
call fcn.004a0e10
mov edi, dword [esp + 0x80]
test al, al
jne 0x4997f6
test esi, 0x800
je 0x4997e0
mov ecx, 0x100
cmp bx, cx
ja 0x4997f6
test esi, 0x400
je 0x4997ee
cmp bx, 0x5f
je 0x4997f6
cmp byte [ebp + 0x1c], 0
jne 0x499842
jmp 0x4997fc
cmp byte [ebp + 0x1c], 0
je 0x499842
cmp edi, 0xfffffffc
je 0x49983a
test edi, edi
jne 0x499811
call fcn.004b32e0
mov edi, dword [esp + 0x80]
cmp dword [edi + 0x18], 8
jb 0x49981c
mov eax, dword [edi + 4]
jmp 0x49981f
lea eax, [edi + 4]
mov edx, dword [edi + 0x14]
lea eax, [eax + edx*2]
cmp dword [esp + 0x84], eax
jb 0x49983a
call fcn.004b32e0
mov edi, dword [esp + 0x80]
add dword [esp + 0x84], 2
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x84]
mov dword [eax], edi
mov dword [eax + 4], 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.004b3057
add esp, 0x68
ret 0x18