Function at 0x411094
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 0x4110b8
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 0x4110d7
mov esi, dword [ebx + 0x8c]
mov edx, dword [ebx + 0x7c]
mov edx, dword [edx]
sub edx, esi
cmp edx, 0x14ccb
jbe 0x4110d7
add esi, dword [ebx + 0x74]
jmp 0x4110dd
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 0x411131
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 0x4111c6
cmp dword [ebx + 0x64], 0
jne 0x411116
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 0x411173
cmp edx, ebp
jae 0x411169
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 0x41114a
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 0x411198
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 0x411185
jmp 0x411116
cmp dword [ebx + 0x34], edi
jbe 0x4111be
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 0x4111af
test eax, eax
jne 0x41121a
mov eax, ebx
test byte [ebx + 0xa], 4
jne 0x4111f3
cmp dword [ebx + 0x3c], 0x2f
jbe 0x4111f3
call fcn.00411c30
jmp 0x4111f8
call fcn.004121c8
mov eax, ebx
call fcn.00410bd4
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
je 0x41132b
mov edx, dword [ebx + 0x30]
sub edx, edi
inc edx
cmp ecx, edx
ja 0x41132b
jmp 0x41121c
xor eax, eax
mov edx, dword [ebx + 0x1c]
sub edx, dword [ebx + 0x40]
cmp edx, dword [ebx + 0x24]
ja 0x41132b
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 0x411260
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x411256
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 0x41123b
test eax, eax
jne 0x41126b
mov edx, 2
jmp 0x4112c9
mov dword [ebx + 0x44], 8
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x411285
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 0x411272
jmp 0x411264
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x4112ac
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 0x411299
xor dword [ebx + 0x3c], 0xffff
dec edx
je 0x4112dd
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 0x4112b4
xor eax, eax
cmp dword [ebx + 0x3c], eax
jbe 0x41134a
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 0x411328
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x34]
jae 0x41131e
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 0x411305
inc eax
jmp 0x4112df
test eax, eax
jne 0x41134a
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.004121c8
mov eax, ebx
call fcn.00410bd4
cmp dword [esp + 0x1c], 0
jne 0x4113c6
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 0x411504
jmp 0x411581
mov eax, dword [ebx + 0x44]
cmp dword [esp + 0x1c], 4
jne 0x41145a
test eax, eax
jne 0x4113ec
test byte [ebx + 9], 0x10
je 0x411351
mov edx, dword [ebx + 0x18]
mov eax, 4
jmp 0x411445
mov dword [ebx + 0x44], 8
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x411406
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 0x4113f3
jmp 0x4113d8
mov edi, dword [ebx + 0x30]
cmp edi, dword [ebx + 0x34]
jae 0x41142d
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 0x41141a
shl edx, 8
dec eax
je 0x411351
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 0x411435
add eax, 3
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x44]
cmp eax, 7
jbe 0x411485
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x41147b
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 0x411460
test eax, eax
jne 0x411492
mov edx, 2
xor eax, eax
jmp 0x4114f2
mov dword [ebx + 0x44], 8
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x34]
jae 0x4114ac
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 0x411499
jmp 0x411489
mov edi, dword [ebx + 0x30]
cmp edi, dword [ebx + 0x34]
jae 0x4114d3
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 0x4114c0
xor eax, 0xffff
dec edx
je 0x411351
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 0x4114db
mov ecx, dword [ebx]
lea edx, [ebx + 0x39272]
test ecx, ecx
je 0x41153e
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 0x411581
mov dword [ebx + 0x6c], 0xffffffff
or eax, 0xffffffff
jmp 0x411584
mov eax, dword [ebx + 0x8c]
cmp esi, edx
jne 0x411579
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 0x411581
mov dword [ebx + 0x58], ebp
mov dword [ebx + 0x5c], edi
jmp 0x411581
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