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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42038e
sub esp, 0x70
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x78]
test edx, edx
jne 0x41fb7f
mov edx, dword [ecx + 0x68]
test edx, edx
jne 0x41fb7f
cmp dword [ecx], eax
jne 0x420377
mov ecx, dword [0xc5d54c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x74]
movzx ebx, byte [edx + 0x3b]
mov byte [esp + 0x1b], bl
cmp bl, 1
jne 0x4202c9
lea ebp, [ecx - 1]
cmp dword [edx + 0x30], ebp
jne 0x4202c9
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], ebp
movzx ebx, byte [0xc639a8]
test bl, bl
jne 0x420103
mov eax, dword [edx + 0x10]
lea ecx, [0xc5d598]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
call fcn.00402050
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x74]
movzx edx, byte [ecx + 0x3a]
mov byte [esp + 0x15], dl
mov ebx, dword [ecx + 0x40]
mov dword [esp + 0x28], ebx
mov eax, dword [eax + 0xbc]
mov dword [esp + 0x4c], eax
lea ebp, [ecx + 0x4c]
mov esi, dword [ecx + 0x4c]
jmp 0x41fc19
mov eax, dword [esp + 0x4c]
mov ecx, edi
mov ebp, esi
mov esi, edx
movzx edx, byte [esp + 0x15]
test esi, esi
je 0x41fd22
movzx edi, word [esi + 4]
test ebx, ebx
je 0x4202c4
mov dword [esp + 0x44], ebp
mov eax, edi
xor edx, edx
div ebx
mov edx, eax
imul eax, ebx
nop
nop
mov edi, edx
shr edx, 3
and edi, 7
mov ecx, edi
mov ebp, 1
shl ebp, cl
nop
mov edi, dword [esp + 0x74]
add edx, dword [edi + 0x2c]
mov ecx, edx
movzx edx, byte [edx]
xchg ebp, eax
test dl, al
xchg ebp, eax
je 0x41fc66
mov edx, dword [esi]
jmp 0x41fc0a
add ebx, eax
mov eax, esi
jmp 0x41fc72
mov esi, dword [esi]
mov edi, dword [esp + 0x74]
test esi, esi
je 0x41fd1b
movzx edi, word [esi + 4]
cmp edi, ebx
jae 0x41fd14
cmp byte [esi + 6], 1
jne 0x41fc6c
nop
or edx, ebp
mov byte [ecx], dl
mov ecx, 1
mov dword [esp + 0x30], ebx
mov byte [esp + 0x17], cl
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x44]
jmp 0x41fcae
mov esi, eax
mov eax, ebp
mov ebp, esi
test eax, eax
je 0x41fd05
movzx esi, word [eax + 4]
cmp esi, ebx
jae 0x41fd05
mov edi, dword [edx + 0xc]
add esi, edi
cmp byte [eax + 6], 1
je 0x41fccd
test cl, cl
je 0x41fccd
mov ebp, dword [eax]
jmp 0x41fca8
mov dword [esp + 0x54], ebp
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov dword [ebp], ecx
mov dword [esp], eax
mov dword [esp + 4], esi
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call fcn.004242d0
movzx ecx, byte [esp + 0x17]
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x54]
jmp 0x41fca8
mov ebx, dword [esp + 0x28]
mov edi, edx
mov edx, eax
mov esi, ebp
jmp 0x41fc0a
xor ecx, ecx
jmp 0x41fc96
xor ecx, ecx
jmp 0x41fc96
mov ebp, dword [0xc6c020]
test ebp, ebp
je 0x4200f0
mov ebp, dword [ecx + 0x2c]
mov dword [esp + 0x58], ebp
mov byte [esp + 0x5c], 1
mov dword [esp + 0x60], 0
mov ebp, dword [ecx + 0x28]
mov dword [esp + 0x64], ebp
mov byte [esp + 0x68], 1
mov dword [esp + 0x6c], 0
xor ebp, ebp
jmp 0x41fd61
inc dword [esp + 0x6c]
inc ebp
cmp dword [ecx + 0x1c], ebp
jbe 0x41fe7b
mov esi, dword [esp + 0x58]
movzx edi, byte [esp + 0x5c]
movzx esi, byte [esi]
xchg edi, eax
xchg esi, ebx
test bl, al
xchg esi, ebx
xchg edi, eax
je 0x41fdc6
nop
movzx esi, byte [esp + 0x5c]
xchg esi, eax
cmp al, 0x80
xchg esi, eax
jne 0x41fdbc
inc dword [esp + 0x58]
mov byte [esp + 0x5c], 1
inc dword [esp + 0x60]
nop
movzx esi, byte [esp + 0x68]
xchg esi, eax
cmp al, 0x80
xchg esi, eax
jne 0x41fdb2
inc dword [esp + 0x64]
mov byte [esp + 0x68], 1
jmp 0x41fd5c
shl esi, 1
xchg esi, eax
mov byte [esp + 0x68], al
xchg esi, eax
jmp 0x41fd5c
shl esi, 1
xchg esi, eax
mov byte [esp + 0x5c], al
xchg esi, eax
jmp 0x41fd96
mov esi, dword [ecx + 0x18]
cmp dword [esp + 0x6c], esi
jae 0x41fe4c
mov esi, 1
xchg esi, eax
test al, al
xchg esi, eax
je 0x41fd80
mov dword [esp + 0x2c], ebp
mov esi, dword [ecx + 0x40]
imul esi, ebp
add esi, dword [ecx + 0xc]
mov edi, dword [0xc6c020]
test edi, edi
jne 0x41fe21
mov edi, dword [0xc6c028]
test edi, edi
je 0x41fd80
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.00420540
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x74]
movzx edx, byte [esp + 0x15]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
jmp 0x41fd80
mov dword [esp + 0x20], esi
mov dword [esp], esi
mov dword [esp + 4], ebx
call fcn.00425890
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x74]
movzx edx, byte [esp + 0x15]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x20]
jmp 0x41fdf1
mov edi, dword [esp + 0x64]
mov esi, edi
movzx edi, byte [esp + 0x68]
xchg edi, eax
mov byte [esp + 0x1a], al
xchg edi, eax
movzx edi, byte [esi]
mov esi, edi
movzx edi, byte [esp + 0x1a]
xchg edi, eax
xchg esi, ebx
test bl, al
xchg esi, ebx
xchg edi, eax
xchg esi, ebx
setne bl
xchg esi, ebx
jmp 0x41fdd4
mov dword [esp], ecx
call fcn.00412400
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 0x15]
mov edx, ecx
shr cl, 1
test cl, cl
jne 0x4200e5
test ax, ax
jne 0x4200e5
mov ebx, dword [esp + 0x74]
mov byte [ebx + 0x3c], 1
mov ebp, 1
movzx esi, word [ebx + 0x38]
mov edi, esi
sub esi, eax
mov word [esp + 0x1c], si
cmp ax, di
ja 0x4201dc
mov byte [esp + 0x19], cl
xchg ebp, eax
mov byte [esp + 0x18], al
xchg ebp, eax
mov word [ebx + 0x38], ax
mov dword [esp], ebx
call fcn.00411060
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 4]
mov dword [esp + 0x38], edx
cmp edx, ecx
mov dword [eax + 0x18], 0
movzx ebx, byte [0xc639a8]
test bl, bl
je 0x41ff26
mov ebx, dword fs:[0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x54]
movzx ebp, word [esp + 0x1c]
movzx esi, bp
imul esi, dword [eax + 0x40]
add dword [ebx + 0x930], esi
mov ecx, dword [eax + 0x2c]
mov dword [eax + 0x28], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp], ecx
call fcn.004244b0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x74]
mov dword [ecx + 0x2c], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call fcn.00410fc0
movzx eax, byte [esp + 0x18]
test al, al
je 0x4200d2
mov ecx, dword [esp + 0x74]
movzx edx, byte [ecx + 0x3b]
mov byte [esp + 0x1b], dl
cmp dl, 1
jne 0x42012e
mov ebx, dword [esp + 0x40]
cmp dword [ecx + 0x30], ebx
jne 0x42012e
lea eax, [ecx + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.004020f0
movzx edx, word [esp + 0x1c]
test dx, dx
jbe 0x4200c9
movzx ebx, byte [esp + 0x19]
test bl, bl
je 0x420056
mov ebp, dword [esp + 0x4c]
test byte [ebp], al
movsx eax, bl
cmp eax, 0x43
jae 0x420124
movzx edx, dx
add dword [ebp + eax*4 + 0x24c], edx
movzx edx, byte [esp + 0x15]
movzx eax, dl
cmp eax, 0x86
jae 0x42011a
shl eax, 6
lea ecx, [0xc5d868]
lea eax, [ecx + eax]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
movzx ecx, byte [esp + 0x78]
mov byte [esp + 8], cl
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp ecx, edx
sete cl
mov byte [esp + 9], cl
call fcn.004141d0
movzx eax, byte [esp + 0xc]
test al, al
je 0x420026
mov byte [esp + 0x7c], al
add esp, 0x70
ret
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x24]
shr eax, 1
and eax, 1
lea eax, [eax + eax*4]
lea ecx, [0xc5d564]
lea eax, [ecx + eax*4]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call fcn.00420580
movzx eax, byte [esp + 0x16]
jmp 0x42001e
movzx eax, byte [esp + 0x18]
test al, al
je 0x4200c2
mov eax, dword [0xc6c02c]
test eax, eax
jle 0x4200a5
mov eax, dword [esp + 0x74]
mov dword [eax + 0x44], 0
mov ecx, dword [eax + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
call fcn.00414930
mov eax, dword [esp + 0x4c]
inc dword [eax + 0x248]
mov ecx, dword [esp + 0x28]
add dword [eax + 0x244], ecx
mov eax, 1
jmp 0x42001a
lea eax, [0xc5d540]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call fcn.00422ff0
jmp 0x420087
xor eax, eax
jmp 0x42001a
movzx eax, byte [esp + 0x18]
test al, al
jmp 0x42005d
movzx edx, word [esp + 0x1c]
test dx, dx
je 0x41ff5f
jmp 0x41ff94
mov ebx, dword [esp + 0x74]
xor ebp, ebp
jmp 0x41feae
mov ebp, dword [0xc6c028]
test ebp, ebp
jne 0x41fd30
jmp 0x41fe7b
mov eax, dword [edx + 0x10]
shl eax, 0xd
mov dword [esp], eax
call fcn.004464a0
mov edx, dword [esp + 0x74]
jmp 0x41fbc1
mov ecx, 0x86
call fcn.00452070
mov ecx, 0x43
call fcn.00452070
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x40], eax
call fcn.0042c8a0
lea eax, [0x8c6d81]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.0042d270
movzx eax, byte [esp + 0x1b]
movzx eax, al
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
lea eax, [0x8c18e0]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0042d270
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
lea eax, [0x8c46dd]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0042d270
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
call fcn.0042cac0
call fcn.0042c910
lea eax, [0x8d38b7]
mov dword [esp], eax
mov dword [esp + 4], 0x27
call fcn.0042ba70
mov dword [esp + 0x34], eax
mov word [esp + 0x1e], di
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x3c], eax
call fcn.0042c8a0
lea eax, [0x8c4fcd]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0042d270
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
lea eax, [0x8c0ca8]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.0042d270
mov eax, dword [esp + 0x34]
movzx eax, ax
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
lea eax, [0x8c7d79]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.0042d270
movzx eax, word [esp + 0x1e]
movzx eax, ax
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
lea eax, [0x8c0cb8]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.0042d270
movzx eax, word [esp + 0x1c]
movzx eax, ax
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
call fcn.0042cac0
call fcn.0042c910
lea eax, [0x8cfdb8]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.0042ba70
call fcn.0042a960
mov eax, dword [edx + 0x30]
mov dword [esp + 0x40], eax
call fcn.0042c8a0
lea eax, [0x8c6d81]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call fcn.0042d270
movzx eax, byte [esp + 0x1b]
movzx eax, al
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
lea eax, [0x8c18e0]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0042d270
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
lea eax, [0x8c46dd]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0042d270
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042cf80
call fcn.0042cac0
call fcn.0042c910
lea eax, [0x8cc8e6]
mov dword [esp], eax
mov dword [esp + 4], 0x1b
call fcn.0042ba70
lea eax, [0x8cd3b1]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
call fcn.0042ba70
nop
call fcn.004507b0
jmp fcn.0041fb40