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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x466dca
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x4823f0]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push esi
push edi
mov eax, dword [0x4823f0]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x34], edi
cmp dword [ebp + 0x10], 1
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x60], eax
jne 0x42d35c
cmp dword [ebp + 0x1c], 4
jne 0x42d35c
lea eax, [edi + 0x10]
push 1
mov ecx, eax
mov dword [esp + 0x50], eax
call fcn.0042cc79
test eax, eax
jne 0x42d361
xor ebx, ebx
mov dword [esp + 0x18], ebx
test esi, esi
je 0x42ce20
mov eax, dword [esi]
test eax, eax
je 0x42ce20
cmp dword [eax + 4], ebx
ja 0x42ce20
jb 0x42ce1a
cmp dword [eax], 0x80000000
ja 0x42ce20
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x1c]
mov dword [esp + 0x308], ebx
push edx
push 0x474008
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx]
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x10]
lea edi, [esp + 0x84]
mov dword [esp + 0xa4], eax
sub edi, dword [esp + 0x34]
mov esi, ebx
mov dword [esp + 0xa8], eax
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
add eax, ecx
mov dword [esp + esi*4 + 0x84], ecx
inc esi
mov dword [edi + edx], eax
lea edx, [edx + 4]
cmp esi, 4
jl 0x42ce61
or dword [esp + 0xb8], 0xffffffff
lea edi, [esp + 0xf0]
mov esi, dword [esp + 0x18]
mov eax, 0x4000400
mov ecx, 0x81
mov dword [esp + 0xac], 5
mov word [esp + 0xb4], bx
mov edx, ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], 1
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xec], ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
mov ch, bl
mov cl, bl
mov dword [esp + 0x30], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x70], ebx
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], eax
mov dword [esp + 0xb0], ebx
mov byte [esp + 0x13], ch
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x12], cl
jmp 0x42cf4d
mov esi, dword [esp + 0x18]
test ch, ch
je 0x42d05f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42d05f
lea edx, [esp + 0x3c]
mov dword [esp + 0xd0], ebx
push edx
push dword [esp + 0x5c]
mov dword [esp + 0xdc], esi
push dword [esp + 0x58]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
jmp 0x42d029
mov esi, dword [esp + 0x3c]
mov edx, esi
add edx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
adc eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x20]
jb 0x42cfcf
mov ecx, dword [esp + 0x14]
ja 0x42cfcb
cmp edx, ecx
jb 0x42cfcf
cmp eax, dword [esp + 0x20]
ja 0x42cfcb
jb 0x42cfc4
cmp edx, ecx
ja 0x42cfcb
cmp byte [esp + 0x12], 0
jne 0x42cfcf
mov cl, bl
jmp 0x42cfd1
mov cl, 1
cmp eax, dword [esp + 0x28]
ja 0x42d151
jb 0x42cfe7
cmp edx, dword [esp + 0x24]
ja 0x42d151
test cl, cl
je 0x42d151
mov esi, dword [esp + 0x58]
lea edi, [esp + 0x3c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x50]
add edx, 1
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
push edi
adc esi, ebx
mov dword [esp + 0x40], ebx
push esi
mov dword [esp + 0x48], ebx
mov ecx, dword [eax]
push edx
push eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], esi
call dword [ecx + 0xc]
mov edi, dword [esp + 0x34]
mov byte [esp + 0x13], bl
test eax, eax
je 0x42cf96
cmp eax, 1
je 0x42d057
cmp eax, 0x80004001
jne 0x42d2f5
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42d057
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x14]
mov cl, byte [esp + 0x12]
test cl, cl
je 0x42d099
mov ecx, dword [esp + 0xe0]
mov eax, edx
sub ecx, dword [esp + 0xa4]
add ecx, dword [esp + 0xa8]
sub eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
sbb edx, dword [esp + 0x28]
cmp eax, ecx
jne 0x42d099
cmp edx, ebx
jne 0x42d099
mov dword [esp + 0xb0], 2
lea ecx, [esp + 0x84]
call fcn.00402f49
mov ecx, dword [esp + 0xa4]
mov esi, dword [edi + 0x20]
sub ecx, esi
mov eax, ecx
cdq
sub eax, dword [esp + 0xe0]
sbb edx, ebx
sub eax, dword [esp + 0x30]
sbb edx, ebx
add eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
adc edx, dword [esp + 0x20]
cmp dword [esp + 0xec], 5
mov dword [esp + 0x28], edx
je 0x42d318
mov eax, dword [esp + 0xac]
cmp eax, 4
jae 0x42d1c4
mov esi, dword [esp + eax*4 + 0x84]
mov ecx, dword [esp + 0x38]
mov edx, dword [edi + eax*4 + 0x10]
sub esi, edx
push esi
mov ecx, dword [ecx + eax*4]
call fcn.0042c85d
test eax, eax
jne 0x42d2f5
mov ecx, dword [esp + 0xac]
cmp ecx, 3
jne 0x42d127
add dword [esp + 0x48], esi
adc dword [esp + 0x64], ebx
mov eax, dword [edi + ecx*4 + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + ecx*4 + 0x84], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [edi + ecx*4 + 0x24]
add eax, dword [edi + ecx*4 + 0x10]
mov dword [esp + ecx*4 + 0x94], eax
jmp 0x42d276
mov eax, dword [edi + 0x20]
add eax, dword [esp + 0x30]
mov dword [esp + 0xa8], eax
test cl, cl
je 0x42d18a
mov ecx, dword [esp + 0x14]
sub eax, dword [esp + 0xa4]
sub ecx, edx
cmp eax, ecx
jb 0x42d311
sub dword [esp + 0xa8], ecx
mov dword [esp + 0xb0], 1
cmp dword [esp + 0x40], ebx
ja 0x42d057
jb 0x42d1a2
cmp esi, 0x80000000
ja 0x42d057
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x24]
add eax, dword [esp + 0xcc]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], esi
jmp 0x42d057
jne 0x42d311
mov eax, dword [esp + 0x30]
mov byte [esp + 0x13], 1
cmp eax, ecx
je 0x42d1f1
add eax, esi
mov dword [esp + 0xa8], eax
mov edx, dword [esp + 0x14]
mov cl, byte [esp + 0x12]
mov ch, byte [esp + 0x13]
jmp 0x42cf49
cmp byte [esp + 0x12], 0
mov edx, dword [esp + 0x14]
mov cl, byte [esp + 0x12]
mov ch, byte [esp + 0x13]
jne 0x42cf49
mov ecx, dword [esp + 0x6c]
mov eax, dword [edi + 0x34]
lea edi, [esp + 0x74]
push edi
push eax
mov ecx, dword [ecx]
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0x7c], eax
mov edx, dword [ecx]
push esi
push ecx
mov dword [esp + 0x40], ebx
call dword [edx + 0xc]
mov edi, dword [esp + 0x34]
test eax, eax
jne 0x42d2f5
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
test ecx, ecx
jne 0x42d25c
mov byte [esp + 0x12], 1
mov cl, byte [esp + 0x12]
mov ch, cl
jmp 0x42cf49
mov eax, dword [edi + 0x20]
add edx, ecx
mov dword [esp + 0x30], ecx
adc dword [esp + 0x20], ebx
add eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xa8], eax
cmp dword [esp + 0x60], 0
mov cl, byte [esp + 0x12]
mov ch, byte [esp + 0x13]
mov esi, dword [esp + 0x18]
je 0x42cf4d
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x28]
sbb eax, dword [esp + 0x70]
mov dword [esp + 0x78], eax
jne 0x42d2b7
cmp ecx, 0x100000
mov cl, byte [esp + 0x12]
mov ch, byte [esp + 0x13]
jb 0x42cf4d
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x60]
cdq
mov dword [esp + 0x80], edx
lea edx, [esp + 0x7c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x28]
push edx
mov dword [esp + 0x74], eax
lea edx, [esp + 0x28]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x42d1e0
mov ebx, eax
or dword [esp + 0x308], 0xffffffff
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x42d30d
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
jmp 0x42d361
mov eax, 0x80004005
jmp 0x42d2f5
mov ecx, dword [esp + 0x38]
lea edi, [esp + 0x84]
mov edx, dword [esp + 0x4c]
mov esi, ebx
sub edi, ecx
mov eax, dword [edi + ecx]
sub eax, dword [edx]
mov edx, dword [edx]
mov ecx, dword [ecx]
push eax
call fcn.0042c85d
test eax, eax
jne 0x42d2f5
mov edx, dword [esp + 0x4c]
inc esi
mov ecx, dword [esp + 0x38]
add edx, 4
add ecx, 4
mov dword [esp + 0x4c], edx
mov dword [esp + 0x38], ecx
cmp esi, 4
jl 0x42d32b
jmp 0x42d2f7
mov eax, 0x80070057
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004550af
mov esp, ebp
pop ebp
ret 0x1c