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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
xor esi, esi
mov word [esp + 0x22], si
mov word [esp + 0x20], si
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov esi, 6
test edx, edx
js 0x41a17e
mov esi, edx
mov edx, eax
or edx, ecx
je 0x41a18e
mov ebx, esi
and ebx, 0x400
jmp 0x41a1a2
mov edi, esi
and edi, 0x400
xor ebx, ebx
cmp dword [ebp + 0x14], 0
je 0x41a1a8
test edi, edi
jne 0x41a1a8
mov edi, ebx
mov bx, 8
mov edx, dword [ebp + 8]
bt esi, 0x10
jb 0x41a1ba
movzx ebx, bx
or ebx, 0x800
mov dword [esp + 0x24], ebx
and esi, 0xf
sete bl
test edi, edi
setne bh
test edx, edx
je 0x41a287
mov edx, dword [edx + 0x48]
mov dword [esp], edx
test edx, edx
je 0x41a27d
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x41a27d
cmp dword [ebp + 0x14], 0
sete dl
cmp dword [ebp + 0x10], 0
setne dh
cmp dword [ebp + 0xc], 0
je 0x41a27d
or dh, dl
je 0x41a27d
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete dh
test dh, dl
jne 0x41a27d
cmp esi, 0xb
jae 0x41a27d
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 4]
mov dword [esp + 4], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [esp]
cmp dword [edx + 0x34], 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
je 0x41a25f
cmp edx, 0xffffffff
jne 0x41a275
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x41a287
test ecx, ecx
jne 0x41a26b
cmp edx, 0xffff
jne 0x41a275
mov edx, dword [esp]
mov dword [edx + 0x34], 1
or eax, ecx
je 0x41a291
test edi, edi
jne 0x41a291
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
call fcn.0041ac87
test eax, eax
je 0x41a32a
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x41a2bf
lea eax, [esp + 0x88]
push eax
call fcn.00457ddd
add esp, 4
lea eax, [esp + 0x88]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x26]
push eax
call fcn.0041ac90
add esp, 8
test edi, edi
je 0x41a2e5
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x78], eax
mov bh, 1
jmp 0x41a318
or bl, bh
xor ecx, ecx
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ecx
call fcn.004125e4
add esp, 0xc
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x28], ecx
cmp ecx, 4
setb bh
jb 0x41a314
mov eax, esi
or bh, bl
mov esi, eax
push dword [ebp + 0xc]
call fcn.0045a120
add esp, 4
cmp eax, 0x10000
jb 0x41a339
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x41a287
mov edx, eax
mov byte [esp + 0x44], bh
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x7c], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], edx
call fcn.0041ad07
mov edx, dword [esp + 0x18]
mov ecx, dword [esp]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x58], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x7c]
add ecx, edx
setb bl
add ecx, dword [esp + 0x58]
adc ebx, 0
mov dword [esp + 0x34], eax
mov eax, ecx
add eax, 0x4a
adc ebx, 0
mov edx, 0xfffffffe
cmp edx, eax
mov eax, 0
sbb eax, ebx
jae 0x41a39e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x41a287
mov eax, dword [esp]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], eax
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x41a416
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x7c]
add eax, dword [ebp + 0x38]
mov ebx, 0
adc ebx, 0xffffffff
add eax, dword [ebp + 0x40]
adc ebx, 0
mov edx, dword [esp + 0x18]
add edx, edx
add eax, edx
adc ebx, dword [esp + 0x10]
add eax, dword [esp + 0x34]
adc ebx, 0
add eax, dword [esp + 0x58]
adc ebx, 0
mov edx, dword [ebp + 8]
add eax, dword [edx]
adc ebx, dword [edx + 4]
mov edx, dword [esp + 0x18]
add eax, 0x72
adc ebx, 0
cmp ebx, 0xffffffff
je 0x41a416
mov eax, dword [esp]
mov dword [eax + 0x34], 1
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x58], 0
test edx, edx
mov ebx, edx
mov edx, dword [ebp + 8]
je 0x41a456
mov eax, dword [ebp + 0xc]
cmp byte [ebx + eax - 1], 0x2f
mov ebx, dword [ebp + 0x14]
jne 0x41a459
test ebx, ebx
jne 0x41a44a
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], 0x10
or eax, dword [esp + 0x28]
je 0x41a459
mov dword [edx + 0x1c], 0x18
jmp 0x41a287
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41a466
mov eax, 0x1c
add eax, ecx
add eax, 0x2e
mov ecx, dword [esp]
cmp dword [ecx + 8], eax
jae 0x41a48c
mov ecx, dword [ebp + 8]
mov edx, dword [esp]
push 1
push eax
call fcn.00424c14
mov ecx, dword [esp + 8]
add esp, 8
test eax, eax
je 0x41a4eb
mov eax, dword [ecx + 0x14]
inc eax
cmp dword [ecx + 0x18], eax
jae 0x41a4ad
mov ecx, dword [esp]
lea edx, [ecx + 0x10]
mov ecx, dword [ebp + 8]
push 1
push eax
call fcn.00424c14
add esp, 8
test eax, eax
je 0x41a4eb
mov cl, byte [esp + 0x44]
xor cl, 1
xor eax, eax
test ebx, ebx
mov byte [esp + 0xc], cl
je 0x41a4fa
test cl, cl
mov ecx, dword [ebp + 8]
je 0x41a4fd
push 0x4df40
push 1
push dword [ecx + 0x34]
mov eax, dword [ebp + 8]
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x41a4fd
mov dword [ecx + 0x1c], 0x10
jmp 0x41a287
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x41a287
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 8]
mov edx, ebx
push dword [esp + 0x34]
push dword [esp + 8]
call fcn.0041ad20
add esp, 8
test eax, eax
je 0x41a5f1
test edi, edi
setne byte [esp + 0x54]
xor ecx, ecx
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add edi, eax
mov edx, dword [esp + 0x3c]
adc edx, ecx
add ebx, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 4]
adc ebx, ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov word [esp + 0xa4], 0
mov al, byte [esp + 0x54]
or al, byte [esp + 0xc]
movzx eax, al
shl eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [esp]
cmp dword [eax + 0x34], ecx
mov eax, ebx
je 0x41a606
mov dword [esp + 0x1c], 0
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, 0xfffffffe
cmp eax, ebx
mov eax, 0
mov dword [esp], ecx
sbb eax, ecx
jb 0x41a6f8
xor eax, eax
mov ecx, 0xfffffffe
cmp ecx, edi
sbb eax, edx
jb 0x41a6f8
xor eax, eax
mov ebx, dword [esp + 0x24]
mov dword [esp], edi
mov dword [esp + 0xc], edx
jmp 0x41a75f
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x41a287
cmp dword [esp + 0x4c], 0
jne 0x41aaa0
test eax, eax
jne 0x41aaa0
mov dword [esp + 4], eax
mov dword [esp], edi
movzx edi, word [esp + 0x20]
movzx ebx, word [esp + 0x22]
movzx eax, word [esp + 0x24]
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0xc], edx
mov edx, 0xffff
mov eax, dword [ebp + 0x38]
and eax, edx
mov ecx, dword [esp + 0x18]
and edx, ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x84], edi
push edi
mov dword [esp + 0x58], ebx
push ebx
push dword [esp + 0x24]
push dword [esp + 0x4c]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push eax
call fcn.0041ae1a
add esp, 0x28
push 0x1e
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x14]
push dword [esp + 0xc]
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x41a85a
mov eax, dword [esp + 8]
add eax, 0x1e
mov ecx, dword [esp + 4]
adc ecx, 0
mov ebx, dword [esp + 0x18]
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
push ecx
mov dword [esp + 0x14], eax
push eax
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x41a8e2
mov edx, dword [esp + 8]
add edx, dword [esp + 0x18]
mov ecx, dword [esp + 4]
adc ecx, 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x50], 0
jmp 0x41a86e
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x41a70c
xor eax, eax
jmp 0x41a710
lea eax, [esp + 0x38]
mov edi, 0xfffffffe
cmp edi, ebx
mov edi, 0
sbb edi, dword [esp]
mov edx, 0
jb 0x41a72d
mov edi, 0
jmp 0x41a731
lea edi, [esp + 0x48]
mov ebx, dword [esp + 0x24]
jae 0x41a73b
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], ecx
push eax
push edi
call fcn.0041adb6
add esp, 8
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
movzx edi, word [esp + 0x20]
movzx ecx, word [esp + 0x22]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
mov ecx, dword [ebp + 0x38]
add eax, ecx
movzx ecx, bx
mov dword [esp + 0x40], ecx
movzx ecx, word [esp + 0x34]
mov dword [esp + 0x5c], ecx
xor ebx, ebx
mov edx, 0xffff
and eax, edx
mov ecx, dword [esp + 0x18]
and edx, ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x84], edi
push edi
push dword [esp + 0x58]
push dword [esp + 0x48]
push dword [esp + 0x68]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call fcn.0041ae1a
add esp, 0x28
push 0x1e
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x14]
push dword [esp + 0xc]
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x41a85a
mov ecx, dword [esp + 8]
add ecx, 0x1e
mov ebx, dword [esp + 4]
adc ebx, 0
mov eax, edi
mov edi, dword [esp + 0x18]
push edi
push dword [ebp + 0xc]
push ebx
mov dword [esp + 0x14], ecx
push ecx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x41a8e2
mov edx, dword [esp + 8]
add edx, edi
adc ebx, 0
cmp dword [esp + 0x1c], 0
mov ecx, ebx
je 0x41a866
lea eax, [esp + 0xa8]
mov ebx, dword [esp + 0x50]
push ebx
push eax
mov dword [esp + 0xc], ecx
push ecx
mov edi, edx
push edx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x41a8fe
mov edx, edi
add edx, dword [esp + 0x50]
mov ecx, dword [esp + 4]
adc ecx, 0
jmp 0x41a86e
mov dword [edi + 0x1c], 0x13
jmp 0x41a287
mov dword [esp + 0x1c], 0
mov edi, dword [ebp + 0x38]
test edi, edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
je 0x41a89f
push edi
push dword [ebp + 0x34]
push ecx
push edx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x41a8fe
mov eax, dword [ebp + 0x38]
add dword [esp + 8], eax
adc dword [esp + 4], 0
cmp byte [esp + 0x44], 0
je 0x41a90d
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x41a8e2
mov eax, dword [ebp + 0x14]
add dword [esp + 8], eax
adc dword [esp + 4], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
jmp 0x41a98c
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x41a287
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x41a287
cmp dword [ebp + 0x14], 0
je 0x41a98c
lea edi, [esp + 0x60]
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
mov eax, dword [esp + 4]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
push eax
push 0xfffffffffffffff1
push esi
call fcn.004134df
add esp, 0xc
push eax
push edi
push 0x41aef6
mov esi, dword [esp + 0x1c]
push esi
call fcn.00413549
add esp, 0x10
push 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.00416822
add esp, 0x10
cmp eax, 1
jne 0x41aa80
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, ecx
mov dword [esp], eax
or ecx, eax
je 0x41ab85
mov dword [esp + 0x60], 0x8074b50
mov edx, dword [esp + 0x78]
mov byte [esp + 0x64], dl
mov byte [esp + 0x65], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x66], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x67], cl
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x1c], 0
je 0x41aa9c
mov byte [esp + 0x68], cl
mov byte [esp + 0x69], ch
mov edx, ecx
shr edx, 0x10
mov byte [esp + 0x6a], dl
mov edx, ebx
shr edx, 0x10
shr ecx, 0x18
mov byte [esp + 0x6b], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [esp + 0x6c], bl
mov byte [esp + 0x6d], bh
mov byte [esp + 0x6e], dl
mov byte [esp + 0x6f], cl
mov edx, esi
mov byte [esp + 0x70], dl
mov byte [esp + 0x71], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x72], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x73], cl
mov dword [esp + 0x10], 0x38
mov dword [esp + 0x40], 0x30
mov ecx, 0x28
mov dword [esp + 0x44], 0x18
mov dword [esp + 0xc], 0x17
mov eax, dword [esp]
mov edx, eax
mov byte [esp + 0x17], al
mov dword [esp + 0x5c], 0x16
mov dword [esp + 0x80], 0x15
mov edi, 0x14
jmp 0x41aaf6
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x41a287
test ebx, ebx
je 0x41aaaf
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x41a287
mov dword [esp + 0x68], ecx
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x40], 0x10
mov ecx, 8
mov dword [esp + 0xc], 0xf
mov dword [esp + 0x5c], 0xe
mov edx, esi
mov byte [esp + 0x17], dl
mov dword [esp + 0x80], 0xd
mov edi, 0xc
mov dword [esp + 0x44], 0x10
mov ebx, esi
mov edx, dword [esp]
shrd ebx, edx, cl
shr edx, cl
mov al, byte [esp + 0x17]
mov byte [esp + edi + 0x60], al
test cl, 0x20
jne 0x41ab0f
mov edx, ebx
mov ecx, dword [esp + 0x80]
mov byte [esp + ecx + 0x60], dl
mov ebx, esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp]
shrd ebx, edx, cl
shr edx, cl
test cl, 0x20
jne 0x41ab2f
mov edx, ebx
mov ecx, dword [esp + 0x5c]
mov byte [esp + ecx + 0x60], dl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp]
shrd esi, eax, cl
shr eax, cl
test cl, 0x20
jne 0x41ab4a
mov eax, esi
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x60], al
lea eax, [esp + 0x60]
mov esi, dword [esp + 0x44]
push esi
push eax
push dword [esp + 0xc]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x41a287
mov eax, dword [esp + 0x44]
add dword [esp + 8], eax
adc dword [esp + 4], 0
cmp dword [esp + 0x1c], 0
je 0x41abe4
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x38]
mov eax, 0
sbb eax, dword [esp + 0x3c]
jb 0x41aba6
xor eax, eax
jmp 0x41abaa
lea eax, [esp + 0x38]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x41abc5
mov edi, 0
jmp 0x41abc9
lea edi, [esp + 0x48]
jae 0x41abcf
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.0041adb6
add esp, 8
mov dword [esp + 0x50], eax
mov ecx, 0xffff
mov esi, dword [esp + 0x50]
and esi, ecx
mov eax, dword [esp + 0x18]
and eax, ecx
movzx edi, word [esp + 0x84]
movzx ebx, word [esp + 0x54]
movzx ecx, word [esp + 0x24]
mov dword [esp], ecx
movzx ecx, word [esp + 0x34]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x60]
push dword [esp + 0x48]
push dword [esp + 0x48]
push edi
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x44]
push dword [esp + 0x9c]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [esp + 0xb4]
push dword [ebp + 0x18]
push esi
push dword [esp + 0x60]
push eax
call fcn.0041af35
add esp, 0x4c
test eax, eax
je 0x41a287
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
xor eax, eax
inc eax
jmp 0x41a289