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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov ebp, dword [eax]
mov dword [eax + 0x98], edx
test ebp, ebp
je 0x41a182
mov edx, dword [ebp + 0x50]
cmp dword [esp + 0xa4], edx
jb 0x41a182
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp + 0x58]
mov ebx, dword [esp + 0xa0]
test eax, eax
mov dword [ebx], eax
je 0x41a775
mov esi, dword [esp + 0xa0]
mov edi, dword [esi + 0xf4]
mov dword [esi + 0x9c], edx
mov eax, dword [ebp + 0x54]
test edi, edi
mov dword [esi + 0xa0], eax
jne 0x41a560
mov edi, dword [esp + 0xa0]
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd0], 0
mov eax, dword [ebp + 0x34]
mov dword [edi + 0xa4], eax
mov eax, dword [ebp + 0x38]
mov dword [edi + 0xa8], eax
mov eax, dword [ebp + 0x3c]
mov dword [edi + 0xac], eax
mov eax, dword [ebp + 0x40]
mov dword [edi + 0xb0], eax
mov eax, dword [ebp + 0x48]
mov dword [edi + 0xb8], eax
mov eax, dword [ebp + 0x44]
mov dword [edi + 0xb4], eax
mov ecx, dword [ebp + 0x4c]
mov dword [edi + 0xbc], ecx
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x41a351
mov dword [esp + 0x6c], 0
mov dword [esp + 0x7c], 0
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x41a3b9
mov dword [esp + 0x70], 0
mov dword [esp + 0x80], 0
mov edx, dword [ebp + 0x1c]
test edx, edx
jne 0x41a425
mov dword [esp + 0x74], 0
mov dword [esp + 0x84], 0
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x41a491
mov dword [esp + 0x78], 0
mov dword [esp + 0x88], 0
mov esi, dword [esp + 0xa0]
imul ecx, dword [esi + 0xb8]
cmp dword [esi + 0xc0], ecx
jae 0x419e64
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x419e19
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esi + 0xc0], 0
mov edi, dword [esp + 0xa0]
mov eax, dword [edi + 0xbc]
imul eax, dword [edi + 0xb8]
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [edi + 0xc4], eax
je 0x41a144
mov eax, dword [edi + 0xb8]
imul eax, dword [edi + 0xbc]
mov dword [edi + 0xc0], eax
add eax, dword [edi + 0xc4]
mov dword [edi + 0xc8], eax
mov eax, dword [esp + 0xa0]
mov edi, dword [eax + 0xc4]
test edi, edi
je 0x41a144
mov ecx, dword [eax + 0xb4]
cmp ecx, dword [eax + 0xbc]
jae 0x419f17
mov esi, dword [eax + 0xb8]
xor ebx, ebx
test esi, esi
jne 0x419ead
jmp 0x419f17
mov edx, dword [esp + 0xa0]
mov ecx, dword [edx + 0xb4]
mov esi, dword [esp + 0xa0]
mov eax, dword [esi + 0xbc]
mov edx, eax
imul eax, ebx
sub edx, ecx
add eax, dword [esi + 0xc8]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
add eax, ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0xbc]
mov edx, dword [esi + 0xb4]
mov ecx, eax
imul eax, ebx
sub ecx, edx
add eax, dword [esi + 0xc4]
add ebx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
add eax, edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
cmp dword [esi + 0xb8], ebx
ja 0x419ea0
mov edi, dword [ebp + 0x2c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edi
nop
mov edi, dword [esp + 0x28]
cmp edi, dword [ebp + 0x28]
jbe 0x41a082
mov eax, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x24]
shr eax, 1
cmp eax, ebx
jae 0x41a082
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x20]
cmp edx, dword [eax + 0xb8]
jae 0x41a082
mov edi, dword [ebp + 0x30]
mov edx, dword [ebp + edi*4 + 0x28]
mov ecx, edx
shr ecx, 1
cmp ebx, ecx
jbe 0x41a250
mov eax, dword [ebp]
test dl, 1
movzx eax, byte [eax + ecx]
je 0x41a1e6
mov ecx, eax
and ecx, 0xf
movzx esi, cl
lea eax, [edx + 1]
cmp esi, 3
mov dword [ebp + edi*4 + 0x28], eax
jbe 0x41a190
mov eax, dword [esp + 0xa0]
mov ebx, dword [eax + 0xb4]
sub ebx, dword [esp + 0x24]
mov edi, esi
mov eax, esi
not edi
shr eax, 2
and edi, 3
cmp eax, ebx
ja 0x419fc6
test eax, eax
je 0x419fc6
mov ebx, eax
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0x20]
imul eax, dword [edx + 0xbc]
add eax, dword [edx + 0xc4]
mov edx, dword [esp + edi*4 + 0x7c]
add eax, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + edi*4 + 0x6c]
imul eax, dword [ecx + 0xbc]
add eax, dword [ecx + 0xc8]
add eax, dword [esp + 0x24]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memset
add dword [esp + 0x24], ebx
mov ebx, dword [esp + 0xa0]
mov esi, dword [esp + 0x24]
cmp esi, dword [ebx + 0xb4]
jb 0x419f30
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + edx*4 + 0x28]
test al, 1
je 0x41a053
add eax, 1
mov dword [ebp + edx*4 + 0x28], eax
mov eax, dword [ebp + 0x30]
mov edi, dword [esp + 0x28]
add dword [esp + 0x20], 1
add eax, 1
mov edx, eax
shr edx, 0x1f
add eax, edx
and eax, 1
sub eax, edx
cmp edi, dword [ebp + 0x28]
mov dword [ebp + 0x30], eax
mov dword [esp + 0x24], 0
ja 0x419f3d
mov ecx, dword [esp + 0xa0]
mov esi, dword [ecx + 0xbc]
test esi, esi
je 0x41a144
mov ebx, ecx
mov ecx, dword [ecx + 0xb8]
test ecx, ecx
je 0x41a144
mov edx, dword [ebx + 0xc0]
test edx, edx
je 0x41a8dd
mov eax, dword [ebx + 0xc8]
cmp byte [eax], 0
jne 0x41a8dd
xor ebx, ebx
jmp 0x41a0ce
cmp byte [ebx + eax], 0
jne 0x41a0d5
add ebx, 1
cmp ebx, edx
jne 0x41a0c8
mov eax, ecx
imul eax, esi
mov ecx, eax
sub ecx, 1
je 0x41a108
mov edi, dword [esp + 0xa0]
mov edx, dword [edi + 0xc8]
cmp byte [edx + ecx], 0
jne 0x41a108
add edx, eax
jmp 0x41a103
movzx eax, byte [edx - 2]
sub edx, 1
test al, al
jne 0x41a108
sub ecx, 1
jne 0x41a0f8
xor edx, edx
mov eax, ebx
div esi
xor edx, edx
mov edi, eax
mov eax, ecx
div esi
mov edx, dword [esp + 0xa0]
add dword [edx + 0xac], edi
mov ecx, eax
lea eax, [eax + 1]
cmp edi, eax
jb 0x41a781
mov dword [edx + 0xb8], 0
mov dword [edx + 0xc0], 0
mov eax, dword [ebp]
test eax, eax
je 0x41a153
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], ebp
call sub.msvcrt.dll_free
mov ecx, dword [esp + 0xa0]
mov ebp, dword [ecx]
mov dword [ecx + 0x100], 1
test ebp, ebp
je 0x41a182
mov edx, dword [ebp + 0x50]
cmp dword [esp + 0xa4], edx
jae 0x419ce0
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + edi*4 + 0x28]
mov ebx, esi
shl ebx, 4
mov ecx, edx
shr ecx, 1
cmp ecx, dword [ebp + 0x24]
jae 0x41a282
mov eax, dword [ebp]
test dl, 1
movzx eax, byte [eax + ecx]
je 0x41a2a5
mov ecx, eax
and ecx, 0xf
lea eax, [edx + 1]
mov dword [ebp + edi*4 + 0x28], eax
mov eax, ecx
and eax, 0xf
mov esi, eax
or esi, ebx
cmp esi, 0xf
jbe 0x41a1f0
mov edx, dword [esp + 0xa0]
mov ebx, dword [edx + 0xb4]
sub ebx, dword [esp + 0x24]
jmp 0x419fb0
mov ecx, eax
shr cl, 4
jmp 0x419f8c
mov ebx, dword [ebp + 0x30]
mov edx, dword [ebp + ebx*4 + 0x28]
mov ecx, edx
shr ecx, 1
cmp ecx, dword [ebp + 0x24]
jae 0x41a30f
mov eax, dword [ebp]
test dl, 1
movzx eax, byte [eax + ecx]
je 0x41a305
mov ecx, eax
and ecx, 0xf
lea eax, [edx + 1]
mov dword [ebp + ebx*4 + 0x28], eax
mov eax, ecx
and eax, 0xf
shl esi, 4
or esi, eax
cmp esi, 0x3f
jbe 0x41a2b0
mov ecx, dword [esp + 0xa0]
mov ebx, dword [ecx + 0xb4]
sub ebx, dword [esp + 0x24]
jmp 0x419fb0
mov dword [esp + 8], 0xaf9b44
xor ebx, ebx
mov dword [esp + 4], 2
mov dword [esp], 0x1a
call fcn.00405fb0
mov edi, dword [ebp + 0x30]
mov edx, dword [ebp + edi*4 + 0x28]
mov ecx, edx
shr ecx, 1
cmp ecx, dword [ebp + 0x24]
jb 0x41a1a6
mov dword [esp + 8], 0xaf9b44
mov dword [esp + 4], 2
mov dword [esp], 0x1a
call fcn.00405fb0
xor eax, eax
jmp 0x41a1c7
mov ecx, eax
shr cl, 4
jmp 0x41a1bb
mov ebx, dword [ebp + 0x30]
mov edx, dword [ebp + ebx*4 + 0x28]
mov ecx, edx
shr ecx, 1
cmp ecx, dword [ebp + 0x24]
jae 0x41a4fe
mov eax, dword [ebp]
test dl, 1
movzx eax, byte [eax + ecx]
je 0x41a4f4
mov ecx, eax
and ecx, 0xf
lea eax, [edx + 1]
mov dword [ebp + ebx*4 + 0x28], eax
mov eax, ecx
and eax, 0xf
shl esi, 4
or esi, eax
cmp esi, 3
jbe 0x41a332
mov edi, dword [esp + 0xa0]
mov ebx, dword [edi + 0xb4]
sub ebx, dword [esp + 0x24]
jmp 0x419fb0
mov ecx, eax
shr cl, 4
jmp 0x41a219
mov dword [esp + 8], 0xaf9b44
mov dword [esp + 4], 2
mov dword [esp], 0x1a
call fcn.00405fb0
xor eax, eax
jmp 0x41a225
mov eax, dword [esp + 0xa0]
mov ebx, dword [eax + 0xb4]
sub ebx, dword [esp + 0x24]
lea eax, [ebx*4]
or esi, eax
jmp 0x419fb0
cmp edx, 0xf
je 0x41a530
mov eax, 0xf
sub eax, edx
shl eax, 4
test eax, eax
mov edx, eax
mov dword [esp + 0x6c], eax
je 0x419d85
mov eax, dword [esp + 0xa0]
mov ebx, dword [eax + 0x94]
test ebx, ebx
jne 0x41a715
mov ebx, eax
mov eax, dword [ebp + 4]
movzx eax, byte [ebx + eax*4 + 0xa]
mov dword [esp + 0x7c], eax
lea eax, [edx + eax]
cmp eax, 0xff
jbe 0x419d8d
mov eax, 0x100
sub eax, edx
mov dword [esp + 0x7c], eax
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x419d98
cmp edx, 0xf
je 0x41a53f
mov eax, 0xf
sub eax, edx
shl eax, 4
test eax, eax
mov edx, eax
mov dword [esp + 0x70], eax
je 0x419da0
mov edi, dword [esp + 0xa0]
mov eax, dword [edi + 0x94]
test eax, eax
jne 0x41a733
mov eax, dword [ebp + 8]
movzx eax, byte [edi + eax*4 + 0xa]
mov dword [esp + 0x80], eax
lea eax, [edx + eax]
cmp eax, 0xff
jbe 0x419dab
mov eax, 0x100
sub eax, edx
mov dword [esp + 0x80], eax
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x419db6
cmp edx, 0xf
je 0x41a521
mov eax, 0xf
sub eax, edx
shl eax, 4
test eax, eax
mov edx, eax
mov dword [esp + 0x74], eax
je 0x419dbe
mov esi, dword [esp + 0xa0]
mov edi, dword [esi + 0x94]
test edi, edi
jne 0x41a754
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax*4 + 0xa]
mov dword [esp + 0x84], eax
lea eax, [edx + eax]
cmp eax, 0xff
jbe 0x419dc9
mov eax, 0x100
sub eax, edx
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x419dd4
cmp eax, 0xf
je 0x41a54e
mov edx, 0xf
sub edx, eax
shl edx, 4
test edx, edx
mov dword [esp + 0x78], edx
je 0x419ddc
mov eax, dword [esp + 0xa0]
mov ebx, dword [eax + 0x94]
test ebx, ebx
je 0x41a6f1
movzx eax, byte [eax + 0x92]
mov dword [esp + 0x88], eax
lea eax, [edx + eax]
cmp eax, 0xff
jbe 0x419de7
mov eax, 0x100
sub eax, edx
mov dword [esp + 0x88], eax
jmp 0x419de7
mov ecx, eax
shr cl, 4
jmp 0x41a2d9
mov dword [esp + 8], 0xaf9b44
mov dword [esp + 4], 2
mov dword [esp], 0x1a
call fcn.00405fb0
xor eax, eax
jmp 0x41a2e5
mov dl, 1
mov dword [esp + 0x74], 1
jmp 0x41a446
mov dl, 1
mov dword [esp + 0x6c], 1
jmp 0x41a372
mov dl, 1
mov dword [esp + 0x70], 1
jmp 0x41a3da
mov edx, 1
mov dword [esp + 0x78], 1
jmp 0x41a4b0
mov edi, dword [esp + 0x1c]
xor eax, eax
mov ecx, 0x10
cld
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x41a580
mov eax, dword [ebp + 4]
mov dword [esp + eax*4 + 0x2c], 1
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x41a592
mov eax, dword [ebp + 8]
mov dword [esp + eax*4 + 0x2c], 1
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x41a5a4
mov eax, dword [ebp + 0xc]
mov dword [esp + eax*4 + 0x2c], 1
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x41a5b6
mov eax, dword [ebp + 0x10]
mov dword [esp + eax*4 + 0x2c], 1
xor eax, eax
cmp dword [esp + 0x2c], 0
setne al
cmp dword [esp + 0x30], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x34], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x38], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x3c], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x40], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x44], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x48], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x4c], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x50], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x54], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x58], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x5c], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x60], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x64], 1
sbb eax, 0xffffffff
cmp dword [esp + 0x68], 1
sbb eax, 0xffffffff
test eax, eax
je 0x419d18
xor esi, esi
cmp eax, 1
mov ebx, pe_nt_image_headers32
je 0x41a66c
mov edi, dword [esp + 0xa0]
mov edx, 0xf0
lea ecx, [eax - 1]
mov ebx, dword [edi + 0xf8]
sub edx, ebx
mov eax, edx
sar edx, 0x1f
idiv ecx
mov esi, eax
mov edi, dword [esp + 0x1c]
xor eax, eax
mov ecx, 0x10
cld
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 4]
test eax, eax
je 0x41a690
mov eax, dword [esp + edx*4 + 0x2c]
test eax, eax
je 0x41a883
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
test eax, eax
je 0x41a6a6
mov eax, dword [esp + edx*4 + 0x2c]
test eax, eax
je 0x41a864
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
test eax, eax
je 0x41a6bc
mov eax, dword [esp + edx*4 + 0x2c]
test eax, eax
je 0x41a845
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x10]
test edi, edi
je 0x419d18
mov esi, dword [esp + eax*4 + 0x2c]
test esi, esi
jne 0x419d18
mov esi, dword [esp + 0xa0]
shl ebx, 0x10
mov dword [esp + eax*4 + 0x2c], 1
mov dword [esi + eax*4 + 8], ebx
jmp 0x419d18
mov ebx, eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [ebx + eax*4 + 0xa]
mov dword [esp + 0x88], eax
lea eax, [edx + eax]
cmp eax, 0xff
jbe 0x419de7
jmp 0x41a4e1
movzx eax, byte [eax + 0x86]
mov dword [esp + 0x7c], eax
lea eax, [edx + eax]
cmp eax, 0xff
jbe 0x419d8d
jmp 0x41a3a3
movzx eax, byte [edi + 0x8a]
mov dword [esp + 0x80], eax
lea eax, [edx + eax]
cmp eax, 0xff
jbe 0x419dab
jmp 0x41a40c
movzx eax, byte [esi + 0x8e]
mov dword [esp + 0x84], eax
lea eax, [edx + eax]
cmp eax, 0xff
jbe 0x419dc9
jmp 0x41a478
mov dword [ebx + 4], 0
jmp 0x419cf4
sub ecx, edi
lea edx, [ecx + 1]
mov ecx, dword [esp + 0xa0]
lea eax, [esi + esi]
imul eax, edx
mov dword [ecx + 0xb8], edx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x41a8a2
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa0]
mov edx, dword [eax + 0xb8]
imul edx, dword [eax + 0xbc]
mov dword [eax + 0xc0], edx
mov eax, edi
imul eax, dword [ecx + 0xbc]
add eax, dword [ecx + 0xc4]
lea ebx, [edx + esi]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0xa0]
imul edi, dword [eax + 0xbc]
add edi, dword [eax + 0xc8]
mov eax, dword [eax + 0xc0]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx + 0xc4]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov edi, dword [esp + 0xa0]
mov dword [edi + 0xc4], esi
mov dword [edi + 0xc8], ebx
jmp 0x41a144
mov ecx, dword [esp + 0xa0]
mov eax, ebx
add ebx, esi
shl eax, 0x10
mov dword [esp + edx*4 + 0x2c], 1
mov dword [ecx + edx*4 + 8], eax
jmp 0x41a6bc
mov edi, dword [esp + 0xa0]
mov eax, ebx
add ebx, esi
shl eax, 0x10
mov dword [esp + edx*4 + 0x2c], 1
mov dword [edi + edx*4 + 8], eax
jmp 0x41a6a6
mov ecx, dword [esp + 0xa0]
mov eax, ebx
add ebx, esi
shl eax, 0x10
mov dword [esp + edx*4 + 0x2c], 1
mov dword [ecx + edx*4 + 8], eax
jmp 0x41a690
mov edx, dword [esp + 0xa0]
mov eax, dword [edx + 0xbc]
imul eax, dword [edx + 0xb8]
mov dword [esp + 8], 0xaf9b74
mov dword [esp + 4], 0
mov dword [esp], 0x1a
add eax, eax
mov dword [esp + 0xc], eax
call fcn.00405fb0
jmp 0x41a144
xor ebx, ebx
jmp 0x41a0d5