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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5ea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
push esi
push edi
mov dword [ebp - 0x260], ecx
push 0x4fca00
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x4fcd2c], 0x1be
push 0x4cfa74
mov ecx, 0x4fca00
call fcn.004032f0
push 0x4d0570
push 0x4fca00
call fcn.00403640
add esp, 8
mov dword [ebp - 0x2c], 0
jmp 0x41693e
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x20
jge 0x416aad
push 0x4d0568
mov ecx, dword [ebp - 0x260]
add ecx, 0x50
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x264], eax
mov eax, dword [ebp - 0x264]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
mov ecx, 0x4fe16c
call fcn.00401ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0044f730
mov dword [ebp - 0x30], 0
jmp 0x4169d4
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0x10
jge 0x416a6a
call fcn.004ba5ee
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x98]
call dword [edx + 0xc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
shl ecx, 4
add ecx, dword [ebp - 0x30]
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
push eax
push 0x4d055c
lea ecx, [ebp - 0x34]
push ecx
call fcn.00419400
add esp, 0xc
mov edx, dword [ebp - 0x34]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov ecx, 0x4fe16c
call fcn.00401ba0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0044f730
jmp 0x4169cb
mov eax, 0x4cfe18
test eax, eax
jne 0x416a7f
mov dword [ebp - 0xa4], 0
jmp 0x416a92
push 0x4cfe18
call fcn.0049d13d
add esp, 4
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
push ecx
push 0x4cfe18
mov ecx, 0x4fe16c
call fcn.00401ba0
jmp 0x416935
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
call fcn.00402300
mov dword [ebp - 0x38], 0
jmp 0x416acd
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0x14
jge 0x416b0b
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
movzx dx, byte [ecx + eax*2 + 0x37]
push edx
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
call fcn.004198f0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
movzx dx, byte [ecx + eax*2 + 0x36]
push edx
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
call fcn.004198f0
jmp 0x416ac4
push 2
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
call fcn.00419350
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 4], 2
push 0x4d0558
mov edx, dword [ebp - 0x26c]
push edx
call fcn.004105d0
add esp, 8
mov byte [ebp - 0x45], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0044f730
movzx eax, byte [ebp - 0x45]
test eax, eax
je 0x416bcf
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
push ecx
push 0x4d054c
lea edx, [ebp - 0x50]
push edx
call fcn.00401950
add esp, 0xc
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0xec], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0xf0]
call fcn.00402240
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044f730
jmp 0x416c8e
push 2
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
call fcn.00419350
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x278], ecx
mov dword [ebp - 4], 4
push 0x4d0548
mov edx, dword [ebp - 0x278]
push edx
call fcn.004105d0
add esp, 8
mov byte [ebp - 0x51], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0044f730
movzx eax, byte [ebp - 0x51]
test eax, eax
je 0x416c8e
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
push ecx
push 0x4d0534
lea edx, [ebp - 0x5c]
push edx
call fcn.00401950
add esp, 0xc
mov dword [ebp - 0x27c], eax
mov eax, dword [ebp - 0x27c]
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
mov dword [ebp - 0x114], ecx
mov edx, dword [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x114]
call fcn.00402240
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0044f730
push 0x4d0520
mov eax, dword [ebp - 0x260]
add eax, 0x50
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x280], eax
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x284], edx
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x260]
add ecx, 0x38
call fcn.00419520
mov ecx, eax
call fcn.004195b0
push eax
mov eax, dword [ebp - 0x284]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00419430
add esp, 0xc
mov dword [ebp - 0x288], eax
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], edx
mov byte [ebp - 4], 7
push 0x4cfe18
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x290], eax
mov edx, dword [ebp - 0x290]
mov dword [ebp - 0x124], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x120]
push eax
mov ecx, 0x4fe16c
call fcn.00401ba0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x68]
call fcn.0044f730
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.0044f730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0044f730
call fcn.004ba5ee
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x138]
call dword [edx + 0xc]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x10]
call fcn.00402300
mov dword [ebp - 0x3c], 0
jmp 0x416ddc
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0xa
jge 0x416e2a
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
mov cl, byte [eax + edx*2 + 0x15]
mov byte [ebp - 0x3d], cl
movsx edx, byte [ebp - 0x3d]
test edx, edx
je 0x416e05
movsx ax, byte [ebp - 0x3d]
push eax
lea ecx, [ebp - 0x10]
call fcn.004198f0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
mov al, byte [edx + ecx*2 + 0x14]
mov byte [ebp - 0x3d], al
movsx ecx, byte [ebp - 0x3d]
test ecx, ecx
je 0x416e28
movsx dx, byte [ebp - 0x3d]
push edx
lea ecx, [ebp - 0x10]
call fcn.004198f0
jmp 0x416dd3
push 0x4d050c
mov eax, dword [ebp - 0x260]
add eax, 0x50
push eax
lea ecx, [ebp - 0x6c]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x294], eax
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x298], edx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10]
call fcn.00419520
mov ecx, eax
call fcn.004195b0
push eax
mov eax, dword [ebp - 0x298]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00419430
add esp, 0xc
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], edx
mov byte [ebp - 4], 0xb
push 0x4cfe18
mov eax, dword [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x2a4], eax
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x184], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x184]
mov ecx, dword [eax]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x168]
push edx
mov eax, dword [ebp - 0x16c]
push eax
mov ecx, 0x4fe16c
call fcn.00401ba0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x74]
call fcn.0044f730
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
call fcn.0044f730
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x6c]
call fcn.0044f730
mov ecx, dword [ebp - 0x260]
movzx edx, byte [ecx + 0x2c]
push edx
mov eax, dword [ebp - 0x260]
movzx ecx, byte [eax + 0x2d]
push ecx
push 0x4d0500
mov edx, dword [ebp - 0x260]
add edx, 0x3c
push edx
call fcn.00419400
add esp, 0x10
mov eax, dword [ebp - 0x260]
add eax, 0x3c
mov dword [ebp - 0x1b0], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x194]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1b0]
call fcn.00401ba0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004ba5ee
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1b8]
call dword [edx + 0xc]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0xa6]
push edx
push 0x4d04d4
lea eax, [ebp - 0x28]
push eax
call fcn.00419400
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x260]
add edx, 0x50
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.00419430
add esp, 0xc
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x1d8], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x1bc], ecx
mov edx, dword [ebp - 0x1d8]
mov eax, dword [edx]
mov dword [ebp - 0x1c0], eax
mov ecx, dword [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
mov ecx, 0x4fe16c
call fcn.00401ba0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x78]
call fcn.0044f730
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xa6]
and ecx, 0x400
je 0x41715c
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xce]
cdq
push 0
push 0x10000
push edx
push eax
call fcn.0049e810
push 0
push 0x10000
push edx
push eax
call fcn.0049e810
push 0
push 0x10000
push edx
push eax
call fcn.0049e810
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0xcc]
cdq
push 0
push 0x10000
push edx
push eax
call fcn.0049e810
push 0
push 0x10000
push edx
push eax
call fcn.0049e810
add esi, eax
adc edi, edx
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0xca]
cdq
push 0
push 0x10000
push edx
push eax
call fcn.0049e810
add esi, eax
adc edi, edx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xc8]
cdq
add esi, eax
adc edi, edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xce]
push ecx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0xcc]
push eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0xca]
push edx
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xc8]
push ecx
push 0x4d04a8
lea edx, [ebp - 0x28]
push edx
call fcn.00419400
add esp, 0x18
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x1e0], ecx
mov edx, dword [ebp - 0x1e0]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, 0x4fe16c
call fcn.00401ba0
jmp 0x4171b8
mov ecx, dword [ebp - 0x14]
movzx eax, word [ecx + 0x7a]
shl eax, 0x10
mov edx, dword [ebp - 0x14]
movzx ecx, word [edx + 0x78]
add eax, ecx
cdq
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 0x7a]
push eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x78]
push edx
push 0x4d0490
lea eax, [ebp - 0x28]
push eax
call fcn.00419400
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x1f8], edx
mov eax, dword [ebp - 0x1f8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, 0x4fe16c
call fcn.00401ba0
mov edx, dword [ebp + 8]
mov ax, word [edx + 0xa]
mov word [ebp - 0x18], ax
mov word [ebp - 0x18], 0x200
push 0
push 0x3e8
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0049e760
mov ecx, eax
mov esi, edx
movzx eax, word [ebp - 0x18]
cdq
push edx
push eax
push esi
push ecx
call fcn.0049e810
mov edx, dword [ebp - 0x260]
mov dword [edx + 0x48], eax
push 0x4d0480
mov eax, dword [ebp - 0x260]
add eax, 0x50
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00401850
add esp, 0xc
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x22c], edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x210], edx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x214]
push eax
mov ecx, 0x4fe16c
call fcn.00401ba0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x7c]
call fcn.0044f730
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx + 0x48]
push edx
movzx eax, word [ebp - 0x18]
push eax
push 0x4d0468
lea ecx, [ebp - 0x28]
push ecx
call fcn.00419400
add esp, 0x10
mov edx, dword [ebp - 0x28]
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov ecx, 0x4fe16c
call fcn.00401ba0
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xa6]
and ecx, 0x200
neg ecx
sbb ecx, ecx
neg ecx
mov edx, dword [ebp - 0x260]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xac]
and ecx, 0x200
neg ecx
sbb ecx, ecx
neg ecx
mov edx, dword [ebp - 0x260]
mov dword [edx + 0x20], ecx
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xbc]
and ecx, 0xff
mov edx, dword [ebp - 0x260]
mov byte [edx + 0x24], cl
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xbc]
and ecx, 0xff00
sar ecx, 8
mov edx, dword [ebp - 0x260]
mov byte [edx + 0x25], cl
mov dword [ebp - 0x80], 1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.0044f730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0044f730
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4