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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x302b4
call fcn.004672e0
push ebx
push esi
push edi
xor eax, eax
push 0x1fffe
push eax
mov word [esp + 0x102c8], ax
lea eax, [esp + 0x102ca]
push eax
call fcn.00457bd0
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004025d1
lea ecx, [esp + 0x48]
call fcn.004025d1
lea ecx, [esp + 0x38]
call fcn.004025d1
lea ecx, [esp + 0x28]
call fcn.004025d1
mov edi, dword [ebp + 0x10]
and dword [esp + 0x20], 0
push 0x46df88
call fcn.0041405d
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push 0x7fff
push ecx
call fcn.004137b1
pop ecx
push eax
lea eax, [esp + 0x2c8]
push eax
call fcn.00457c4a
xor eax, eax
add esp, 0xc
mov word [esp + 0x102be], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
push 0x104
push ecx
call fcn.004137b1
pop ecx
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.00457c4a
xor eax, eax
mov word [esp + 0x2c4], ax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
add esp, 0xc
call fcn.004137b1
push eax
call fcn.00410473
mov esi, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 8]
pop ecx
mov dword [esp + 0x24], esi
call fcn.004137e5
xor ecx, ecx
push 0x46e064
push esi
mov word [esi + eax*2], cx
call fcn.00458b48
pop ecx
pop ecx
test eax, eax
je 0x41fb0b
push eax
lea eax, [esp + 0x2c]
call fcn.00402d4f
push 0x473734
lea edx, [esp + 0x2c]
call fcn.00422cc8
push 0x473738
lea edx, [esp + 0x2c]
mov edi, eax
call fcn.00422cc8
mov ebx, eax
cmp edi, 0xffffffff
je 0x41fb8a
cmp ebx, 0xffffffff
je 0x41fb8a
cmp ebx, edi
jb 0x41fb8a
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
call fcn.00404c0a
push 0x46e064
lea esi, [esp + 0x14]
call fcn.00402627
mov eax, ebx
lea ecx, [esp + 0x28]
sub eax, edi
push ecx
dec eax
lea ebx, [edi + 1]
lea ecx, [esp + 0x4c]
call fcn.0040550c
lea eax, [esp + 0x48]
push eax
mov eax, esi
call fcn.00404c0a
mov edi, 0x46e064
push edi
call fcn.00402627
push edi
push 0
call fcn.00458b48
pop ecx
pop ecx
test eax, eax
jne 0x41fa69
mov ebx, dword [ebp + 0xc]
push 0x46e064
lea esi, [esp + 0x14]
call fcn.00402627
xor esi, esi
inc esi
mov edi, esi
cmp dword [esp + 0x14], esi
jbe 0x41fb48
lea eax, [esp + 0x10]
call fcn.00402c2d
cmp word [eax], 0x7c
jne 0x41fb41
lea eax, [esp + 0x10]
call fcn.00402c2d
xor ecx, ecx
mov word [eax], cx
inc edi
cmp edi, dword [esp + 0x14]
jb 0x41fb24
push dword [esp + 0x24]
call fcn.00455e6c
cmp dword [ebp + 0x14], 6
pop ecx
jb 0x41fb67
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x14]
call fcn.004139e6
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x14], 5
jb 0x41fbab
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x10]
call fcn.004137b1
push eax
lea eax, [esp + 0x102c4]
push eax
call fcn.004561f7
pop ecx
pop ecx
jmp 0x41fbb5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esi, dword [eax + 4]
add esi, ecx
lea eax, [esi + 4]
call fcn.004196a2
mov dword [eax + 0x14], 2
lea eax, [esi + 4]
jmp 0x41fd65
xor eax, eax
mov word [esp + 0x102c0], ax
push 0x58
pop edi
push edi
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.00457bd0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x2cc]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x102cc]
mov dword [esp + 0x64], edi
mov dword [esp + 0x80], eax
add esp, 0xc
lea eax, [esp + 0xb0]
xor edi, edi
cmp dword [ebp + 0x14], 4
mov dword [esp + 0x78], 0xffff
mov dword [esp + 0x84], eax
jb 0x41fcb1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00413892
cmp eax, 0x1f
jg 0x41fcb1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00413892
test eax, eax
js 0x41fcb1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov edi, 0x80004
call fcn.00413892
test al, 0x10
je 0x41fc54
add edi, 2
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00413892
test al, 8
je 0x41fc69
or edi, 0x2000
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00413892
test al, 4
je 0x41fc7e
or edi, 0x200
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00413892
test al, 2
je 0x41fc93
or edi, 0x800
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
call fcn.00413892
test al, 1
je 0x41fca8
or edi, 0x1000
mov dword [esp + 0x8c], edi
jmp 0x41fcbc
mov dword [esp + 0x8c], 0x80004
cmp byte [ebp + 0x18], 0
lea eax, [esp + 0x58]
push eax
je 0x41fd35
call dword [0x46b0c0]
test eax, eax
je 0x41fd4d
push dword [esp + 0x74]
test edi, 0x200
je 0x41fd43
call fcn.00455e51
pop ecx
push dword [esp + 0x74]
mov esi, eax
lea eax, [esp + 0x3c]
call fcn.00402d4f
mov eax, dword [esp + 0x74]
lea eax, [eax + esi*2 + 2]
jmp 0x41fd25
push eax
call fcn.00455e51
lea esi, [esp + 0x3c]
mov edi, eax
mov dword [esp], 0x46e064
call fcn.00402627
push dword [esp + 0x74]
call fcn.00402627
mov eax, dword [esp + 0x74]
lea eax, [eax + edi*2 + 2]
mov dword [esp + 0x74], eax
cmp word [eax], 0
jne 0x41fcfc
push dword [esp + 0x38]
jmp 0x41fd43
call dword [0x46b0bc]
test eax, eax
je 0x41fd4d
push dword [esp + 0x74]
mov edi, dword [ebp + 0x10]
call fcn.0041405d
jmp 0x41fd6e
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edi, dword [eax + 4]
add edi, ecx
lea eax, [edi + 4]
call fcn.004196a2
mov dword [eax + 0x14], esi
lea eax, [edi + 4]
call fcn.004196a2
mov byte [eax + 0x18], 0
lea ecx, [esp + 0x28]
call fcn.00402604
lea ecx, [esp + 0x38]
call fcn.00402604
lea ecx, [esp + 0x48]
call fcn.00402604
lea ecx, [esp + 0x10]
call fcn.00402604
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14