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

Disassembly:
push ebp
push edi
mov ecx, 0x26
push esi
push ebx
sub esp, 0x19c
mov eax, dword [esp + 0x1c4]
mov ebp, dword [esp + 0x1c8]
lea edi, [esp + 0x60]
mov esi, dword [esp + 0x1c0]
rep movsd dword es:[edi], dword [esi]
test eax, eax
mov dword [esp + 0x2c], eax
sete dl
test ebp, ebp
sete al
cmp dl, al
jne 0x41c3b1
mov edi, dword [esp + 0xcc]
test edi, edi
jne 0x41bf50
mov edx, dword [esp + 0x1b4]
lea eax, [esp + 0x44]
lea edi, [esp + 0x60]
mov dword [esp + 0x14], 2
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xffffffff
call fcn.00414200
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
lea edx, [eax - 3]
cmp edx, 2
ja 0x41c014
cmp dword [esp + 0x20], ecx
jbe 0x41c014
cmp ecx, 0x18
ja 0x41c014
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0xe4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], esi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x20]
test ebx, ebx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
jne 0x41be61
lea edx, [eax - 3]
mov ebx, 2
cmp edx, 2
jbe 0x41c440
mov esi, dword [esp + 0xcc]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x1cc]
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x1c8], ebp
mov dword [esp + 0x3c], ebp
test esi, esi
mov dword [esp + 0x1c4], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edx
lea edx, [eax - 3]
jne 0x41c390
cmp eax, 1
je 0x41c452
lea edx, [eax - 3]
cmp edx, 2
ja 0x41c390
cmp ebx, 1
jne 0x41c390
movzx ecx, byte [esp + 0x20]
mov esi, 4
shl esi, cl
mov eax, 2
shl eax, cl
add eax, 0x3f
and eax, 0xffffffc0
lea edx, [esi + eax + 0x354c]
mov eax, dword [esp + 0x1b4]
add eax, 3
and eax, 0xfffffffc
cmp dword [esp + 0x1b8], 1
mov edi, eax
mov dword [esp + 0x20], eax
mov eax, 0
cmovne eax, edi
lea esi, [edx + eax]
mov eax, dword [esp + 0x38]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
call fcn.00408180
test eax, eax
mov ebp, eax
je 0x41c1e0
lea edx, [eax + esi]
lea eax, [eax + 0x130c]
cmp edx, eax
jae 0x41c083
mov dword [0x10], ebp
ud2
mov eax, dword [esp + 0x1b4]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0xc], 2
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
lea eax, [esp + 0xf8]
call fcn.00410ca0
mov eax, dword [esp + 0x110]
mov ecx, dword [esp + 0x100]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
lea edx, [eax - 3]
lea ebx, [ecx + 2]
cmp edx, 2
cmovbe ecx, ebx
mov ebx, dword [esp + 0x64]
test ebx, ebx
cmove ebx, dword [esp + 0xf8]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x6c]
test ebx, ebx
cmove ebx, ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x78]
test ecx, ecx
cmove ecx, dword [esp + 0xfc]
test edi, edi
cmove edi, dword [esp + 0x104]
test esi, esi
cmove esi, dword [esp + 0x108]
test ebx, ebx
cmove ebx, dword [esp + 0x10c]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x7c]
test ebx, ebx
je 0x41be01
lea edx, [ebx - 3]
mov eax, ebx
cmp edx, 2
jbe 0x41be0a
mov ebx, dword [esp + 0x1b4]
lea eax, [esp + 0x44]
mov dword [esp + 0x14], 2
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp], eax
mov dword [esp + 0xcc], 0
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x60]
mov dword [esp + 4], ebx
call fcn.00414200
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5c]
jmp 0x41be1d
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x1308], ebx
lea edi, [esp + 0xf8]
mov dword [ebp + 0x10], ebp
mov dword [ebp + 0x14], edx
lea esi, [esp + 0x60]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x12f4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], edx
mov byte [ebp + 0x28], 0
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x12f8], ecx
mov ecx, dword [esp + 0x40]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x1304], 0
mov dword [ebp + 0x12fc], ecx
mov ecx, 0x26
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xfc]
mov dword [ebp + 0xe0], ecx
mov ecx, dword [esp + 0x100]
mov dword [ebp + 0xe4], ecx
mov ecx, dword [esp + 0x104]
mov dword [ebp + 0xe8], ecx
mov ecx, dword [esp + 0x108]
mov dword [ebp + 0xec], ecx
mov ecx, dword [esp + 0x10c]
mov dword [ebp + 0xf0], ecx
mov ecx, dword [esp + 0x110]
mov dword [ebp + 0xf4], ecx
mov ecx, dword [esp + 0x114]
cmp dword [esp + 0x1b8], 1
mov ebx, dword [esp + 0x1b0]
mov dword [ebp + 0xf8], ecx
mov ecx, dword [esp + 0x164]
mov dword [ebp + 0x94], ecx
sete cl
test ebx, ebx
mov esi, ecx
sete cl
mov ebx, esi
or bl, cl
jne 0x41c270
mov ecx, dword [esp + 0x1b4]
test ecx, ecx
je 0x41c270
mov esi, dword [esp + 0x20]
add esi, eax
cmp esi, edx
ja 0x41c430
test eax, eax
mov dword [esp + 0x20], edx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], esi
je 0x41c420
mov edx, dword [esp + 0x1b4]
mov edi, dword [esp + 0x1b0]
mov dword [ebp], eax
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], edi
call sub.msvcrt.dll_memcpy
mov eax, esi
mov edx, dword [esp + 0x20]
jmp 0x41c27a
mov eax, dword [esp + 0x38]
mov dword [esp], 0
lea edi, [esp + 0xf8]
lea esi, [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
call fcn.00408210
mov ecx, 0x26
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xfc]
mov dword [0xe0], eax
mov eax, dword [esp + 0x100]
mov dword [0xe4], eax
mov eax, dword [esp + 0x104]
mov dword [0xe8], eax
mov eax, dword [esp + 0x108]
mov dword [0xec], eax
mov eax, dword [esp + 0x10c]
mov dword [0xf0], eax
mov eax, dword [esp + 0x110]
mov dword [0xf4], eax
mov eax, dword [esp + 0x114]
mov dword [0xf8], eax
ud2
mov ebx, dword [esp + 0x1b0]
mov dword [ebp], ebx
mov ebx, dword [esp + 0x1b4]
lea ecx, [eax + 0x2200]
lea edi, [ebp + 0x10]
cmp ecx, edx
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x1bc]
mov dword [ebp + 8], ebx
ja 0x41c380
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x17c]
lea esi, [ebp + 0x38]
lea ecx, [esp + 0xfc]
mov dword [ebp + 0x12e8], 1
mov dword [ebp + 0x12ec], 4
mov dword [ebp + 0x12f0], 8
mov dword [ebp + 0x504], 0
mov edx, edi
mov dword [ebp + 0x12dc], 0
mov dword [ebp + 0x12e0], 0
mov dword [ebp + 0x12e4], 0
mov dword [esp], eax
mov eax, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0
call fcn.00410710
cmp eax, 0xffffff88
ja 0x41c420
mov edx, dword [ebp]
mov dword [esp + 0x124], 3
mov dword [esp + 0x118], 1
mov ecx, dword [ebp + 4]
test edx, edx
je 0x41c354
cmp ecx, 7
ja 0x41c3d0
cmp dword [esp + 0x1bc], 2
je 0x41c420
xor eax, eax
mov dword [ebp + 0x1300], eax
mov eax, ebp
add esp, 0x19c
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp + 0x28], 1
xor eax, eax
jmp 0x41c2a8
mov eax, 1
mov esi, eax
shl esi, cl
movzx ecx, byte [esp + 0x20]
shl eax, cl
add esi, eax
shl esi, 2
cmp edx, 2
jbe 0x41c3c0
xor eax, eax
jmp 0x41bed6
add esp, 0x19c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, 1
je 0x41bec9
xor eax, eax
jmp 0x41bed6
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], edx
lea edx, [esp + 0xf8]
lea eax, [ebp + 0x100]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 1
mov dword [esp + 4], edx
xor ecx, ecx
mov dword [esp], edi
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1bc]
mov edx, esi
mov dword [esp + 0x10], ebx
call fcn.00419b80
cmp eax, 0xffffff88
jbe 0x41c364
nop
lea esi, [esi]
mov dword [esp], ebp
call fcn.0041bc50
xor eax, eax
jmp 0x41c36c
mov byte [ebp + 0x28], 1
jmp 0x41c420
xor ebx, ebx
cmp dword [esp + 0x24], 0x12
setb bl
add ebx, 1
jmp 0x41be61
movzx ecx, byte [esp + 0x20]
mov esi, 4
xor eax, eax
shl esi, cl
jmp 0x41bed6