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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, eax
mov dword [esp + 0x1c], edx
xor eax, eax
test byte [ebx + 0xa], 8
je 0x41f9f8
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x40]
cmp eax, dword [ebx + 0x24]
setbe al
movzx eax, al
cmp dword [ebx], 0
jne 0x41fa17
mov esi, dword [ebx + 0x8c]
mov edx, dword [ebx + 0x7c]
mov edx, dword [edx]
sub edx, esi
cmp edx, 0x14ccb
jbe 0x41fa17
add esi, dword [ebx + 0x74]
jmp 0x41fa1d
lea esi, [ebx + 0x39272]
mov dword [ebx + 0x30], esi
lea edx, [esi + 0x14cbc]
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
mov edi, dword [ebx + 0x2c]
movzx edx, byte [edi]
mov ecx, dword [ebx + 0x38]
sar edx, cl
mov byte [edi], dl
xor edx, edx
cmp dword [ebx + 0x38], 8
sete dl
sub dword [ebx + 0x28], edx
test byte [ebx + 9], 0x10
jne 0x41fa71
mov ecx, dword [ebx + 0x44]
xor edx, edx
cmp dword [esp + 0x1c], 4
sete dl
shl edx, cl
or dword [ebx + 0x48], edx
inc ecx
mov dword [ebx + 0x44], ecx
jmp 0x41fb06
cmp dword [ebx + 0x64], 0
jne 0x41fa56
mov ecx, dword [ebx + 0x44]
mov edx, 0x78
shl edx, cl
or dword [ebx + 0x48], edx
add ecx, 8
mov dword [ebx + 0x44], ecx
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x30]
mov ebp, dword [ebx + 0x34]
mov edi, dword [ebx + 0x48]
cmp ecx, 7
jbe 0x41fab3
cmp edx, ebp
jae 0x41faa9
lea ecx, [edx + 1]
mov dword [ebx + 0x30], ecx
mov ecx, edi
mov byte [edx], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x41fa8a
mov edx, 1
shl edx, cl
or edi, edx
mov dword [ebx + 0x48], edi
add ecx, 8
mov dword [ebx + 0x44], ecx
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x34]
jae 0x41fad8
mov ecx, dword [ebx + 0x48]
lea edi, [edx + 1]
mov dword [ebx + 0x30], edi
mov byte [edx], cl
shr dword [ebx + 0x48], 8
mov edi, dword [ebx + 0x44]
lea edx, [edi - 8]
mov dword [ebx + 0x44], edx
cmp edx, 7
ja 0x41fac5
jmp 0x41fa56
cmp dword [ebx + 0x34], edi
jbe 0x41fafe
lea edx, [edi + 1]
mov dword [ebx + 0x30], edx
mov ecx, ebp
mov byte [edi], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
mov edi, dword [ebx + 0x44]
mov dword [esp + 0x18], edi
mov edi, dword [ebx + 0x30]
mov ebp, dword [ebx + 0x48]
cmp dword [esp + 0x18], 7
ja 0x41faef
test eax, eax
jne 0x41fb5a
mov eax, ebx
test byte [ebx + 0xa], 4
jne 0x41fb33
cmp dword [ebx + 0x3c], 0x2f
jbe 0x41fb33
call fcn.00420570
jmp 0x41fb38
call fcn.00420b08
mov eax, ebx
call fcn.0041f514
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x41fc6b
mov edx, dword [ebx + 0x30]
sub edx, edi
inc edx
cmp ecx, edx
ja 0x41fc6b
jmp 0x41fb5c
xor eax, eax
mov edx, dword [ebx + 0x1c]
sub edx, dword [ebx + 0x40]
cmp edx, dword [ebx + 0x24]
ja 0x41fc6b
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x48], ebp
mov eax, dword [esp + 0x18]
add eax, 2
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x44]
cmp eax, 7
jbe 0x41fba0
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x41fb96
mov edx, dword [ebx + 0x48]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
mov byte [eax], dl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x41fb7b
test eax, eax
jne 0x41fbab
mov edx, 2
jmp 0x41fc09
mov dword [ebx + 0x44], 8
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x41fbc5
mov edx, dword [ebx + 0x48]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
mov byte [eax], dl
shr dword [ebx + 0x48], 8
mov eax, dword [ebx + 0x44]
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x41fbb2
jmp 0x41fba4
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x41fbec
mov ecx, dword [ebx + 0x48]
lea edi, [eax + 1]
mov dword [ebx + 0x30], edi
mov byte [eax], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
cmp dword [ebx + 0x44], 7
ja 0x41fbd9
xor dword [ebx + 0x3c], 0xffff
dec edx
je 0x41fc1d
mov edx, 1
mov ecx, dword [ebx + 0x44]
movzx eax, word [ebx + 0x3c]
shl eax, cl
or dword [ebx + 0x48], eax
add ecx, 0x10
mov dword [ebx + 0x44], ecx
jmp 0x41fbf4
xor eax, eax
cmp dword [ebx + 0x3c], eax
jbe 0x41fc8a
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x40]
add edx, eax
and edx, 0x7fff
movzx edx, byte [ebx + edx + 0x90]
shl edx, cl
or dword [ebx + 0x48], edx
add ecx, 8
mov dword [ebx + 0x44], ecx
cmp dword [ebx + 0x44], 7
jbe 0x41fc68
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x34]
jae 0x41fc5e
mov ecx, dword [ebx + 0x48]
lea edi, [edx + 1]
mov dword [ebx + 0x30], edi
mov byte [edx], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x41fc45
inc eax
jmp 0x41fc1f
test eax, eax
jne 0x41fc8a
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x48], ebp
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x44], eax
mov eax, ebx
call fcn.00420b08
mov eax, ebx
call fcn.0041f514
cmp dword [esp + 0x1c], 0
jne 0x41fd06
mov dword [esp + 8], 0x240
mov dword [esp + 4], 0
lea eax, [ebx + 0x8192]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
lea eax, [ebx + 0x83d2]
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea eax, [ebx + 0x9273]
mov dword [ebx + 0x28], eax
lea eax, [ebx + 0x9272]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x38], 8
mov eax, dword [ebx + 0x3c]
add dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], 0
inc dword [ebx + 0x64]
mov edi, dword [ebx + 0x30]
sub edi, esi
jne 0x41fe44
jmp 0x41fec1
mov eax, dword [ebx + 0x44]
cmp dword [esp + 0x1c], 4
jne 0x41fd9a
test eax, eax
jne 0x41fd2c
test byte [ebx + 9], 0x10
je 0x41fc91
mov edx, dword [ebx + 0x18]
mov eax, 4
jmp 0x41fd85
mov dword [ebx + 0x44], 8
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x41fd46
mov edx, dword [ebx + 0x48]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
mov byte [eax], dl
shr dword [ebx + 0x48], 8
mov eax, dword [ebx + 0x44]
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x41fd33
jmp 0x41fd18
mov edi, dword [ebx + 0x30]
cmp edi, dword [ebx + 0x34]
jae 0x41fd6d
mov ecx, dword [ebx + 0x48]
lea ebp, [edi + 1]
mov dword [ebx + 0x30], ebp
mov byte [edi], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
cmp dword [ebx + 0x44], 7
ja 0x41fd5a
shl edx, 8
dec eax
je 0x41fc91
mov ecx, dword [ebx + 0x44]
mov edi, edx
shr edi, 0x18
shl edi, cl
or dword [ebx + 0x48], edi
add ecx, 8
mov dword [ebx + 0x44], ecx
jmp 0x41fd75
add eax, 3
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x44]
cmp eax, 7
jbe 0x41fdc5
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x41fdbb
mov edx, dword [ebx + 0x48]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
mov byte [eax], dl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
jmp 0x41fda0
test eax, eax
jne 0x41fdd2
mov edx, 2
xor eax, eax
jmp 0x41fe32
mov dword [ebx + 0x44], 8
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x41fdec
mov edx, dword [ebx + 0x48]
lea ecx, [eax + 1]
mov dword [ebx + 0x30], ecx
mov byte [eax], dl
shr dword [ebx + 0x48], 8
mov eax, dword [ebx + 0x44]
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x41fdd9
jmp 0x41fdc9
mov edi, dword [ebx + 0x30]
cmp edi, dword [ebx + 0x34]
jae 0x41fe13
mov ecx, dword [ebx + 0x48]
lea ebp, [edi + 1]
mov dword [ebx + 0x30], ebp
mov byte [edi], cl
shr dword [ebx + 0x48], 8
sub dword [ebx + 0x44], 8
cmp dword [ebx + 0x44], 7
ja 0x41fe00
xor eax, 0xffff
dec edx
je 0x41fc91
mov edx, 1
mov ecx, dword [ebx + 0x44]
mov edi, eax
shl edi, cl
or dword [ebx + 0x48], edi
add ecx, 0x10
mov dword [ebx + 0x44], ecx
jmp 0x41fe1b
mov ecx, dword [ebx]
lea edx, [ebx + 0x39272]
test ecx, ecx
je 0x41fe7e
mov esi, dword [ebx + 0x78]
mov eax, dword [ebx + 0x84]
sub eax, dword [ebx + 0x70]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call ecx
test eax, eax
jne 0x41fec1
mov dword [ebx + 0x6c], 0xffffffff
or eax, 0xffffffff
jmp 0x41fec4
mov eax, dword [ebx + 0x8c]
cmp esi, edx
jne 0x41feb9
mov edx, dword [ebx + 0x7c]
mov ebp, dword [edx]
sub ebp, eax
cmp ebp, edi
cmova ebp, edi
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
add eax, dword [ebx + 0x74]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [ebx + 0x8c], ebp
sub edi, ebp
je 0x41fec1
mov dword [ebx + 0x58], ebp
mov dword [ebx + 0x5c], edi
jmp 0x41fec1
add edi, eax
mov dword [ebx + 0x8c], edi
mov eax, dword [ebx + 0x5c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret