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

Disassembly:
sub esp, 0xf4
mov eax, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
push ebx
mov ebx, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x128]
push edi
mov edi, dword [esp + 0x110]
push 5
push ebx
mov dword [eax], 0
push ebp
mov dword [edx], 0
push esi
mov dword [esp + 0x28], ecx
mov dword [edi], 0
call fcn.0040aa10
mov ecx, dword [esp + 0x108]
push 5
push ebx
push ebp
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
push esi
call fcn.0040aa10
mov edx, dword [esp + 0x10c]
mov ecx, dword [esp + 0x18]
push 4
push ebx
push ebp
push esi
mov dword [edx], eax
call fcn.0040aa10
mov edx, dword [esp + 0x108]
push eax
mov dword [edi], eax
mov eax, dword [esp + 0x110]
mov ecx, dword [eax]
mov eax, dword [edx]
push ecx
push eax
push str.hLit_d_hDist_d_hCLen_d_n
call fcn.00416625
add esp, 0x10
xor eax, eax
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x24], 0x11
mov dword [esp + 0x28], 0x12
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 7
mov dword [esp + 0x38], 9
mov dword [esp + 0x3c], 6
mov dword [esp + 0x40], 0xa
mov dword [esp + 0x44], 5
mov dword [esp + 0x48], 0xb
mov dword [esp + 0x4c], 4
mov dword [esp + 0x50], 0xc
mov dword [esp + 0x54], 3
mov dword [esp + 0x58], 0xd
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], 0xe
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov ecx, dword [edi]
add ecx, 4
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0x10], eax
je 0x40c468
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
xor edx, edx
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c3f3
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c3fc
mov edx, 1
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c41c
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c423
or edx, 2
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c443
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c44a
or edx, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x20]
mov dword [esp + ecx*4 + 0x6c], edx
mov edx, dword [edi]
inc eax
add edx, 4
mov dword [esp + 0x10], eax
cmp eax, edx
jb 0x40c3d1
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x6c]
push eax
push 0x13
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc4]
push edx
mov ecx, edi
call fcn.0040ab90
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x114]
mov edx, dword [esp + 0x118]
mov dword [eax], ecx
mov eax, dword [esp + 0x128]
mov dword [edx], eax
mov edx, dword [esp + 0x108]
mov edx, dword [edx]
lea ecx, [ecx + edx*4 + 0x404]
mov edx, dword [esp + 0x11c]
mov dword [edx], ecx
mov ecx, dword [esp + 0x108]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x120]
lea eax, [eax + edx*4 + 0x404]
mov dword [ecx], eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xbc]
push eax
push 0x13
mov ecx, edi
call fcn.0040acd0
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x1c], eax
mov edi, eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x10c]
mov ecx, dword [ecx]
xor edx, edx
lea eax, [eax + ecx + 0x102]
mov dword [esp + 0x14], edx
test eax, eax
jbe 0x40c739
lea esp, [esp]
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c540
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c549
mov edi, dword [edi + 4]
jmp 0x40c54b
mov edi, dword [edi]
cmp dword [edi], 0
jne 0x40c718
cmp dword [edi + 4], 0
jne 0x40c718
mov eax, dword [edi + 8]
cmp eax, 0xf
ja 0x40c57a
mov ecx, dword [esp + 0x124]
mov dword [ecx + edx*4], eax
inc edx
mov dword [esp + 0x14], edx
jmp 0x40c714
cmp eax, 0x10
jne 0x40c603
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
xor edi, edi
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c5a5
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c5ae
mov edi, 1
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c5ce
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c5d5
or edi, 2
lea eax, [edi + 3]
test eax, eax
jbe 0x40c714
mov ecx, dword [esp + 0x124]
lea edi, [ecx + edx*4]
lea esi, [edi - 4]
mov ecx, eax
add edx, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x12c]
mov dword [esp + 0x14], edx
jmp 0x40c714
cmp eax, 0x11
jne 0x40c6ac
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
xor edi, edi
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c62e
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c637
mov edi, 1
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c657
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c65e
or edi, 2
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c67e
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c685
or edi, 4
lea ecx, [edi + 3]
mov dword [esp + 0x10], ecx
test ecx, ecx
jbe 0x40c714
mov eax, dword [esp + 0x124]
lea edi, [eax + edx*4]
xor eax, eax
add edx, dword [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], edx
jmp 0x40c714
cmp eax, 0x12
jne 0x40c714
mov dword [esp + 0x10], 0
lea edx, [eax - 0x11]
lea edi, [eax - 0xb]
nop
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov ecx, dword [ebx]
and eax, ecx
add ecx, ecx
mov dword [ebx], ecx
cmp ecx, 0x100
jb 0x40c6e0
mov dword [ebx], 1
inc dword [ebp]
test eax, eax
je 0x40c6e8
or dword [esp + 0x10], edx
add edx, edx
sub edi, 1
jne 0x40c6c0
mov edx, dword [esp + 0x10]
add edx, 0xb
je 0x40c710
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x124]
lea edi, [eax + ecx*4]
xor eax, eax
add dword [esp + 0x14], edx
mov ecx, edx
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x108]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x10c]
mov ecx, dword [ecx]
lea eax, [eax + ecx + 0x102]
cmp edx, eax
jb 0x40c520
push str.Making_Huffman_Code_from_Code_Lengths_n
call fcn.00416625
mov ecx, dword [esp + 0x118]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10c]
mov ecx, dword [edx]
mov edx, dword [esp + 0x11c]
mov esi, dword [esp + 0x1c]
add esp, 4
push eax
add ecx, 0x101
push ecx
mov ecx, dword [edx]
push ecx
push eax
mov ecx, esi
call fcn.0040ab90
mov edx, dword [esp + 0x11c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x10c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x120]
push eax
inc edx
push edx
mov edx, dword [ecx]
push edx
push eax
mov ecx, esi
call fcn.0040ab90
mov eax, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0040c1a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xf4
ret 0x30