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

Disassembly:
sub esp, 0xa4
push ebx
push ebp
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xb8]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
cmp ecx, ebx
je 0x4f06d8
call fcn.004f4950
test al, al
je 0x4f06fa
mov esi, dword [esp + 0xc4]
mov edi, dword [esp + 0xbc]
mov ebp, 1
cmp esi, ebx
je 0x4f0730
mov ecx, esi
call fcn.004f4a50
test al, al
jne 0x4f0722
mov eax, dword [esp + 0xb8]
mov dword [eax], 0x6ae0d4
mov ecx, 0x6ae0d4
mov edx, 1
lock xadd dword [ecx], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x14
call fcn.004ee600
mov byte [esp + 0x1f], 1
test al, al
jne 0x4f0734
mov byte [esp + 0x1f], bl
mov dword [esp + 0x28], ebx
cmp esi, ebx
je 0x4f0759
mov ecx, esi
call fcn.004f4a70
mov dword [esp + 0x30], eax
cmp eax, ebx
jne 0x4f0763
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0xc
jmp 0x4f077b
mov dword [esp + 0x30], 0xffffffff
jmp 0x4f077b
cmp eax, 0xc
jge 0x4f076e
mov dword [esp + 0x28], ebx
jmp 0x4f077b
mov dword [esp + 0x28], ebp
je 0x4f077b
sub eax, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], 0x6ae0d4
mov eax, 0x6ae0d4
lock xadd dword [eax], ebp
mov esi, dword [edi]
mov ecx, dword [esi + 8]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x2c], eax
jle 0x4f114d
nop
mov edx, dword [esi + 0xc]
cmp word [edx + eax*2], 0x27
jne 0x4f07ea
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x5c]
push edi
push edx
call fcn.004ee390
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
mov eax, dword [esp + 0x58]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f113c
mov edx, dword [esp + 0x58]
push edx
call fcn.004b7f30
add esp, 4
jmp 0x4f113c
mov ebx, dword [esp + 0x2c]
mov eax, edx
movzx ebp, word [eax + ebx*2]
inc ebx
mov eax, ebx
cmp eax, ecx
mov di, bp
mov word [esp + 0x48], di
jge 0x4f0813
lea edx, [edx + eax*2]
cmp word [edx], bp
jne 0x4f0813
inc eax
add edx, 2
cmp eax, ecx
jl 0x4f0806
mov ecx, dword [esp + 0x2c]
sub eax, ecx
cmp dword [esp + 0xc0], 0
mov ebp, eax
mov dword [esp + 0x24], ebp
je 0x4f0b81
movzx eax, di
cmp eax, 0x4d
je 0x4f0a3b
cmp eax, 0x64
je 0x4f0921
cmp eax, 0x79
jne 0x4f0b81
cmp ebp, 4
jl 0x4f0855
lea ebp, [eax - 0x75]
jmp 0x4f085f
cmp ebp, 2
jl 0x4f085f
mov ebp, 2
mov eax, ebp
sub eax, 2
je 0x4f08cd
sub eax, 2
je 0x4f0883
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x14]
mov ebp, 1
call fcn.004b9340
jmp case.default.0x4f0a5e
mov ecx, dword [esp + 0xc0]
push 0
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
call fcn.004f4960
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
mov eax, dword [esp + 0x34]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne case.default.0x4f0a5e
mov edx, dword [esp + 0x34]
push edx
jmp 0x4f1129
mov ecx, dword [esp + 0xc0]
push 2
push 2
push 0xa
push 0xffffffffffffffff
call fcn.004f4960
cdq
mov ecx, 0x64
idiv ecx
mov ecx, dword [esp + 0x28]
mov eax, edx
cdq
push edx
push eax
lea edx, [esp + 0x54]
push edx
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
mov eax, dword [esp + 0x3c]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne case.default.0x4f0a5e
mov edx, dword [esp + 0x3c]
push edx
jmp 0x4f1129
cmp ebp, 4
mov dword [esp + 0x20], 4
lea eax, [esp + 0x24]
jl 0x4f0936
lea eax, [esp + 0x20]
mov ebp, dword [eax]
lea eax, [ebp - 1]
cmp eax, 3
ja case.default.0x4f0a5e
jmp dword [eax*4 + 0x4f118c]
mov ecx, dword [esp + 0xc0]
push 0
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
call fcn.004f49a0
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x64]
call fcn.004010b0
jmp case.default.0x4f0a5e
mov ecx, dword [esp + 0xc0]
push 2
push 2
push 0xa
push 0xffffffffffffffff
call fcn.004f49a0
cdq
push edx
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x5c]
call fcn.004010b0
jmp case.default.0x4f0a5e
mov ecx, dword [esp + 0xc0]
push 1
call fcn.004f49c0
mov ecx, dword [esp + 0xcc]
push eax
lea edx, [esp + 0x94]
push edx
call fcn.004f0330
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x8c]
call fcn.004010b0
jmp case.default.0x4f0a5e
mov ecx, dword [esp + 0xc0]
push 0
call fcn.004f49c0
mov ecx, dword [esp + 0xcc]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.004f0330
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x6c]
call fcn.004010b0
jmp case.default.0x4f0a5e
cmp ebp, 4
mov dword [esp + 0x20], 4
lea eax, [esp + 0x24]
jl 0x4f0a50
lea eax, [esp + 0x20]
mov ebp, dword [eax]
lea eax, [ebp - 1]
cmp eax, 3
ja case.default.0x4f0a5e
jmp dword [eax*4 + 0x4f119c]
mov ecx, dword [esp + 0xc0]
push 0
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
call fcn.004f4980
cdq
push edx
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
mov edx, dword [esp + 0x4c]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne case.default.0x4f0a5e
mov ecx, dword [esp + 0x4c]
jmp 0x4f1128
mov ecx, dword [esp + 0xc0]
push 2
push 2
push 0xa
push 0xffffffffffffffff
call fcn.004f4980
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
mov eax, dword [esp + 0x44]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne case.default.0x4f0a5e
mov edx, dword [esp + 0x44]
push edx
jmp 0x4f1129
mov ecx, dword [esp + 0xc0]
push 1
call fcn.004f4980
mov ecx, dword [esp + 0xcc]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004f01e0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
mov ecx, dword [esp + 0x54]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne case.default.0x4f0a5e
mov eax, dword [esp + 0x54]
push eax
jmp 0x4f1129
mov ecx, dword [esp + 0xc0]
push 0
call fcn.004f4980
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0xd4]
call fcn.004f01e0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
mov edx, dword [esp + 0x38]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne case.default.0x4f0a5e
mov ecx, dword [esp + 0x38]
jmp 0x4f1128
cmp dword [esp + 0xc4], 0
je case.0x4f0ba5.66
movzx eax, di
add eax, 0xffffffbf
cmp eax, 0x39
ja case.0x4f0ba5.66
movzx edx, byte [eax + 0x4f11d0]
jmp dword [edx*4 + 0x4f11ac]
cmp ebp, 2
mov dword [esp + 0x20], 2
lea eax, [esp + 0x24]
jl 0x4f0bc1
lea eax, [esp + 0x20]
cmp byte [esp + 0x1f], 0
mov ebp, dword [eax]
je 0x4f0bd0
mov eax, dword [esp + 0x30]
jmp 0x4f0bdc
mov ecx, dword [esp + 0xc4]
call fcn.004f4a70
mov ecx, ebp
sub ecx, 1
je 0x4f0c23
sub ecx, 1
jne case.default.0x4f0a5e
mov ecx, dword [esp + 0x18]
push 2
push 2
push 0xa
cdq
push 0xffffffffffffffff
push edx
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0xac]
call fcn.004010b0
jmp case.default.0x4f0a5e
push 0
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
cdq
push edx
push eax
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x74]
call fcn.004010b0
jmp case.default.0x4f0a5e
cmp ebp, 2
mov dword [esp + 0x20], 2
lea eax, [esp + 0x24]
jl 0x4f0c6c
lea eax, [esp + 0x20]
mov ebp, dword [eax]
mov eax, ebp
sub eax, 1
je 0x4f0cc1
sub eax, 1
jne case.default.0x4f0a5e
mov ecx, dword [esp + 0xc4]
push 2
push 2
push 0xa
push 0xffffffffffffffff
call fcn.004f4a70
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea edx, [esp + 0xac]
push edx
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x94]
call fcn.004010b0
jmp case.default.0x4f0a5e
mov ecx, dword [esp + 0xc4]
push 0
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
call fcn.004f4a70
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x7c]
call fcn.004010b0
jmp case.default.0x4f0a5e
cmp ebp, 2
mov dword [esp + 0x20], 2
lea eax, [esp + 0x24]
jl 0x4f0d16
lea eax, [esp + 0x20]
mov ebp, dword [eax]
mov eax, ebp
sub eax, 1
je 0x4f0d6b
sub eax, 1
jne case.default.0x4f0a5e
mov ecx, dword [esp + 0xc4]
push 2
push 2
push 0xa
push 0xffffffffffffffff
call fcn.004f4a90
cdq
push edx
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0xa4]
call fcn.004010b0
jmp case.default.0x4f0a5e
mov ecx, dword [esp + 0xc4]
push 0
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
call fcn.004f4a90
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea edx, [esp + 0x9c]
push edx
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x84]
call fcn.004010b0
jmp case.default.0x4f0a5e
cmp ebp, 2
mov dword [esp + 0x20], 2
lea eax, [esp + 0x24]
jl 0x4f0dc3
lea eax, [esp + 0x20]
mov ebp, dword [eax]
mov eax, ebp
sub eax, 1
je 0x4f0e18
sub eax, 1
jne case.default.0x4f0a5e
mov ecx, dword [esp + 0xc4]
push 2
push 2
push 0xa
push 0xffffffffffffffff
call fcn.004f4ad0
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x9c]
call fcn.004010b0
jmp case.default.0x4f0a5e
mov ecx, dword [esp + 0xc4]
push 0
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
call fcn.004f4ad0
cdq
push edx
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0x60]
call fcn.004010b0
jmp case.default.0x4f0a5e
cmp ebx, dword [esi + 8]
jge 0x4f0e6a
mov edx, dword [esi + 0xc]
cmp word [edx + ecx*2 + 2], 0x70
mov ebp, 2
je 0x4f0e6f
mov ebp, 1
cmp dword [esp + 0x28], 0
jne 0x4f0ea3
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0xd0]
or ebx, 3
mov dword [esp + 0x1c], ebx
call fcn.004f0490
mov ecx, eax
call fcn.004bc000
jmp 0x4f0ecf
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc8]
or eax, 0xc
lea edx, [esp + 0x68]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x74]
push eax
call fcn.004f05a0
mov ecx, eax
call fcn.004bc000
mov ebx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
test bl, 8
je 0x4f0eee
and ebx, 0xfffffff7
lea ecx, [esp + 0x68]
mov dword [esp + 0x14], ebx
call fcn.004010b0
test bl, 4
je 0x4f0f03
and ebx, 0xfffffffb
lea ecx, [esp + 0x70]
mov dword [esp + 0x14], ebx
call fcn.004010b0
test bl, 2
je 0x4f0f18
and ebx, 0xfffffffd
lea ecx, [esp + 0x78]
mov dword [esp + 0x14], ebx
call fcn.004010b0
test bl, 1
je case.default.0x4f0a5e
and ebx, 0xfffffffe
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], ebx
call fcn.004010b0
jmp case.default.0x4f0a5e
cmp ebx, dword [esi + 8]
jge 0x4f0f4e
mov edx, dword [esi + 0xc]
cmp word [edx + ecx*2 + 2], 0x50
mov ebp, 2
je 0x4f0f53
mov ebp, 1
cmp dword [esp + 0x28], 0
jne 0x4f0f8a
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xd0]
or ebx, 0x30
mov dword [esp + 0x1c], ebx
call fcn.004f0490
mov ecx, eax
call fcn.004bc2b0
jmp 0x4f0fbe
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc8]
or eax, 0xc0
lea edx, [esp + 0x88]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x94]
push eax
call fcn.004f05a0
mov ecx, eax
call fcn.004bc2b0
mov ebx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
test bl, bl
jns 0x4f0fe2
and ebx, 0xffffff7f
lea ecx, [esp + 0x88]
mov dword [esp + 0x14], ebx
call fcn.004010b0
test bl, 0x40
je 0x4f0ffa
and ebx, 0xffffffbf
lea ecx, [esp + 0x90]
mov dword [esp + 0x14], ebx
call fcn.004010b0
test bl, 0x20
je 0x4f1012
and ebx, 0xffffffdf
lea ecx, [esp + 0x98]
mov dword [esp + 0x14], ebx
call fcn.004010b0
test bl, 0x10
je case.default.0x4f0a5e
and dword [esp + 0x14], 0xffffffef
lea ecx, [esp + 0xa0]
call fcn.004010b0
jmp case.default.0x4f0a5e
xor ecx, ecx
cmp ebp, 3
setge cl
lea ecx, [ecx + ecx + 1]
mov ebp, ecx
mov eax, ebp
sub eax, 1
je 0x4f1092
sub eax, 2
jne case.default.0x4f0a5e
mov ecx, dword [esp + 0xc4]
push 2
push 3
push 0xa
push 0xffffffffffffffff
call fcn.004f4b00
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea edx, [esp + 0xc0]
push edx
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0xa8]
call fcn.004010b0
jmp case.default.0x4f0a5e
mov ecx, dword [esp + 0xc4]
push 0
push 0xffffffffffffffff
push 0xa
push 0xffffffffffffffff
call fcn.004f4b00
mov ecx, dword [esp + 0x28]
cdq
push edx
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.004ef1c0
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
lea ecx, [esp + 0xb0]
call fcn.004010b0
jmp case.default.0x4f0a5e
lea esi, [esp + 0x40]
mov ebp, 1
call fcn.004edb50
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
mov ecx, dword [esp + 0x40]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne case.default.0x4f0a5e
mov eax, dword [esp + 0x40]
push eax
jmp 0x4f1129
mov ecx, dword [esp + 0x48]
push ecx
push ebp
lea ecx, [esp + 0x58]
call fcn.004b7d70
push eax
lea ecx, [esp + 0x14]
call fcn.004b9200
mov edx, dword [esp + 0x50]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne case.default.0x4f0a5e
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004b7f30
add esp, 4
add dword [esp + 0x2c], ebp
mov edi, dword [esp + 0xbc]
mov esi, dword [edi]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x2c]
cmp eax, ecx
jl 0x4f07a0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xb8]
mov dword [esi], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4f117d
mov edx, dword [esp + 0x10]
push edx
call fcn.004b7f30
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xa4
ret 0x14