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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov eax, edx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov ebx, dword [edx]
mov dword [ebp - 0x10], 0
push edi
mov edi, ecx
cmp esi, 1
jb 0x4216b3
mov al, byte [ebx + eax]
lea ecx, [ebx + 1]
movzx eax, al
mov dword [ebp - 8], eax
sub eax, ebx
add eax, ecx
mov dword [edx], ecx
cmp eax, esi
ja 0x4216b3
add ecx, dword [ebp - 8]
mov dword [edx], ecx
cmp byte [edi + 0x1d6], 3
jne 0x4210ac
cmp byte [edi + 0x1d7], 3
jb 0x4210ac
mov eax, ecx
sub eax, ebx
add eax, 2
cmp eax, esi
ja 0x4216b3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 8]
add esi, 3
mov al, byte [ecx + eax]
add esi, ebx
mov cl, byte [ecx + edx + 1]
mov edx, dword [ebp + 8]
mov dword [edx], esi
mov esi, dword [ebp + 0xc]
movzx edx, al
shl edx, 8
movzx eax, cl
or edx, eax
mov dword [ebp - 0x18], edx
cmp edx, esi
ja 0x4216b3
mov ecx, dword [ebp - 8]
mov eax, edx
add ecx, 3
sub eax, ebx
add ecx, ebx
add eax, ecx
cmp eax, esi
ja 0x4216b3
push edx
mov edx, dword [ebp - 4]
lea edx, [ecx + edx]
mov ecx, edi
call fcn.0041ef50
add esp, 4
test eax, eax
je 0x42107f
mov eax, dword [edi + 0x168]
test eax, eax
je 0x42107f
cmp dword [eax], 0
je 0x42107f
mov eax, dword [edi + 0x16c]
test eax, eax
je 0x42107f
cmp dword [eax], 0
je 0x42107f
mov eax, 0xfffffe57
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
add dword [edx], eax
xor eax, eax
cmp byte [edi + 0x318], 8
mov word [edi + 0x396], ax
jne 0x4210ac
movzx eax, byte [edi + 0x317]
xor ecx, ecx
bts ecx, eax
mov word [edi + 0x396], cx
mov edx, dword [edx]
mov eax, edx
sub eax, ebx
add eax, 2
cmp eax, esi
ja 0x4216b3
mov eax, dword [ebp - 4]
movzx ecx, byte [edx + eax]
movzx eax, byte [edx + eax + 1]
add edx, 2
shl cx, 8
or cx, ax
mov eax, dword [ebp + 8]
movzx ecx, cx
mov dword [ebp + 0xc], ecx
mov dword [eax], edx
movzx eax, cx
sub eax, ebx
add eax, edx
cmp eax, esi
ja 0x4216b3
test cx, cx
je 0x42114e
mov eax, edx
sub eax, ebx
add eax, 2
cmp eax, esi
ja 0x4216b3
mov eax, dword [ebp - 4]
movzx ecx, byte [edx + eax]
movzx eax, byte [edx + eax + 1]
add edx, 2
shl cx, 8
or cx, ax
movzx eax, cx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
movzx eax, ax
mov dword [ebp - 0x18], eax
sub eax, ebx
add eax, edx
mov dword [ecx], edx
cmp eax, esi
ja 0x4216b3
add edx, dword [ebp - 0x18]
mov eax, 0xfffe
sub eax, dword [ebp - 0x14]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp + 0xc], ecx
test cx, cx
jne 0x4210f2
mov eax, dword [edi]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
je 0x42160e
mov eax, dword [edi + 0x168]
test eax, eax
je 0x42116e
cmp dword [eax], 0
jne 0x42160e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call ecx
add esp, 0xc
cmp eax, 1
jne 0x421663
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x421657
mov edx, dword [edx + 0x90]
test edx, edx
je 0x421657
movzx eax, word [edi + 0x30c]
xor ecx, ecx
shr eax, 0xb
not eax
and eax, 1
push eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 2
push dword [edx + 8]
mov edx, dword [edx]
call fcn.0040a4f0
add esp, 0x1c
cmp eax, 1
jne 0x421657
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x421657
movzx eax, word [edi + 0x30c]
mov ecx, dword [edi]
shr eax, 0xb
not eax
and eax, 1
push eax
push 0
push 0
push edi
push 1
push 2
push dword [edx + 0xc]
mov edx, dword [edx + 0x14]
call fcn.0040a4f0
add esp, 0x1c
cmp eax, 1
jne 0x421657
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4214b8
cmp byte [esi + 0x98], 0
je 0x4214b8
or ecx, 0xffffffff
lea eax, [esi + 0x9c]
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4214b8
lea ecx, [esi + 0x264]
call fcn.00413180
lea ecx, [esi + 0x738]
call fcn.00413180
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x421277
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x421268
call ecx
jmp 0x42126d
call fcn.00471b58
add esp, 4
mov dword [esi + 0x7c], 0
lea ebx, [esi + 0x90]
test ebx, ebx
je 0x4212d4
mov edx, dword [ebx]
test edx, edx
je 0x4212d4
cmp dword [edx + 0xc], 1
jne 0x4212ab
mov eax, dword [edx]
test eax, eax
je 0x4212ab
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x4212ab
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4212a0
mov eax, dword [0x4a3918]
mov dword [edx], 0
mov dword [edx + 8], 0
push edx
test eax, eax
je 0x4212c6
call eax
jmp 0x4212cb
call fcn.00471b58
add esp, 4
mov dword [ebx], 0
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4212f2
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x4212ea
call ecx
jmp 0x4212ef
call fcn.00471b58
add esp, 4
mov eax, dword [esi + 0xa4]
mov dword [esi + 0x6c], 0
test eax, eax
je 0x421312
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x42131e
call ecx
jmp 0x421323
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x421326
jmp 0x421303
call fcn.00471b58
add esp, 4
mov eax, dword [esi + 0xa8]
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
test eax, eax
je 0x42135b
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x421353
call ecx
jmp 0x421358
call fcn.00471b58
add esp, 4
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xa8], 0
test eax, eax
je 0x421390
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x42137e
call ecx
jmp 0x421383
call fcn.00471b58
add esp, 4
mov dword [esi + 0xb8], 0
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x4213bb
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x4213a9
call ecx
jmp 0x4213ae
call fcn.00471b58
add esp, 4
mov dword [esi + 0xb0], 0
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x4213e6
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x4213d4
call ecx
jmp 0x4213d9
call fcn.00471b58
add esp, 4
mov dword [esi + 0xb4], 0
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x421407
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x4213ff
call ecx
jmp 0x421404
call fcn.00471b58
add esp, 4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x421415
xor edx, edx
call fcn.0040d800
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x421423
xor edx, edx
call fcn.0040d800
mov ebx, dword [esi + 0x18]
test ebx, ebx
je 0x421464
test byte [ebx + 0x20], 1
je 0x42144e
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x42144e
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x421446
call ecx
jmp 0x42144b
call fcn.00471b58
add esp, 4
mov eax, dword [0x4a3918]
push ebx
test eax, eax
je 0x42145c
call eax
jmp 0x421461
call fcn.00471b58
add esp, 4
mov eax, dword [esi + 0xac]
test eax, eax
je 0x42148f
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x42147d
call ecx
jmp 0x421482
call fcn.00471b58
add esp, 4
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4214a2
call fcn.004377c0
mov dword [esi + 0x78], 0
mov eax, dword [0x4a3918]
push esi
test eax, eax
je 0x4214b0
call eax
jmp 0x4214b5
call fcn.00471b58
add esp, 4
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x42160e
lea eax, [esi + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x42160e
lea ecx, [esi + 0x28]
call fcn.0045ea60
mov eax, dword [esi + 0x14]
test eax, eax
je 0x421503
mov ecx, dword [0x4a3918]
push eax
test ecx, ecx
je 0x4214f4
call ecx
jmp 0x4214f9
call fcn.00471b58
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 4]
cmp eax, 0x12
jg 0x42158a
je 0x421567
sub eax, 0x10
je 0x421541
sub eax, 1
jne 0x4215ff
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x4215ff
test byte [esi + 0x5e], 4
je 0x4215ff
call fcn.00408760
mov dword [esi + 0x1c], 0
jmp 0x4215ff
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4215ff
test byte [esi + 0x5e], 8
je 0x4215ff
call fcn.00408440
mov dword [esi + 0x18], 0
jmp 0x4215ff
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4215ff
test byte [esi + 0x5e], 2
je 0x4215ff
call fcn.00408c60
mov dword [esi + 0x20], 0
jmp 0x4215ff
cmp eax, 0x1c
je 0x4215e6
cmp eax, 0x40c
jne 0x4215ff
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4215a9
call fcn.004439c0
mov dword [esi + 0x3c], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4215bc
call fcn.004439c0
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x4215cf
call fcn.004439c0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], 0
jmp 0x4215ff
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4215ff
test byte [esi + 0x5e], 1
je 0x4215ff
call fcn.00408920
mov dword [esi + 0x24], 0
mov eax, dword [0x4a3918]
push esi
test eax, eax
je 0x421650
call eax
add esp, 4
mov ecx, edi
call fcn.0040d570
test eax, eax
jne 0x4216b8
mov eax, dword [edi + 0x168]
test eax, eax
je 0x421673
cmp dword [eax], 0
je 0x421673
mov eax, dword [edi + 0x16c]
test eax, eax
je 0x42168d
cmp dword [eax], 0
je 0x42168d
mov ax, word [edi + 0x30c]
mov ecx, 0xfff7
and ax, cx
or ax, 4
jmp 0x421686
call fcn.00471b58
jmp 0x42160b
mov eax, 0xfffffe4c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jns 0x42160e
mov eax, 0x53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [edi + 0x30c]
mov ecx, 0xfffb
and ax, cx
or ax, 8
mov word [edi + 0x30c], ax
cmp byte [edi + 0x304], 0
je 0x4216aa
cmp byte [edi + 0xdd], 0
je 0x4216aa
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x300]
add dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffeb8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret