Function at 0x402672
Capabilities:
Access peb ldr_data
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x68
mov eax, dword [ecx + 0x3c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ecx, dword [eax + ecx + 0x78]
test ecx, ecx
je 0x402c1d
mov eax, ecx
mov ecx, dword [esp + 4]
mov dword [esp], 0
mov edx, eax
add edx, ecx
mov esi, dword [eax + ecx + 0x14]
mov eax, dword [edx + 0x18]
mov ebx, dword [edx + 0x1c]
mov edi, dword [edx + 0x20]
mov dword [esp + 0x30], edx
mov edx, dword [edx + 0x24]
mov dword [esp + 0x20], esi
cmp esi, eax
cmova eax, esi
add edx, ecx
add ebx, ecx
add edi, ecx
dec ecx
imul eax, eax, 0xff
mov dword [esp + 0x24], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x50], ecx
add eax, edx
mov dword [esp + 0x2c], eax
mov esi, dword [esp]
cmp esi, dword [esp + 0x20]
je 0x402c1d
mov ecx, dword [esp + 0xc]
lea eax, [esi + 1]
xor ebp, ebp
mov dword [esp], eax
mov ebx, dword [ecx + esi*4]
add ebx, dword [esp + 4]
cmp ebp, 0x100
je 0x402712
cmp byte [ebx + ebp], 0
je 0x402717
inc ebp
jmp 0x402701
mov ebp, 0x100
xor edx, edx
sub ebp, 1
jb 0x40273f
movzx ecx, byte [ebx]
mov edi, ecx
lea eax, [ecx - 0x41]
or edi, 0x20
cmp eax, 0x1a
cmovae edi, ecx
imul eax, edx, 0x1003f
add eax, edi
test edi, edi
cmovne edx, eax
inc ebx
jmp 0x402719
cmp edx, dword [esp + 8]
jne 0x4026e1
mov eax, dword [esp + 0x10]
movzx edx, word [eax + esi*2]
cmp dword [esp + 0x20], edx
jbe 0x402c1d
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 4]
lea ebx, [edx + eax]
cmp ebx, dword [esp + 0x30]
jbe 0x402c74
cmp ebx, dword [esp + 0x2c]
jae 0x402c74
xor eax, eax
cmp eax, 0x100
je 0x4026e1
cmp byte [ebx + eax], 0
je 0x40278f
inc eax
jmp 0x40277b
add edx, dword [esp + 0x50]
xor esi, esi
mov ebp, eax
sub ebp, esi
je 0x4026e1
mov edi, esi
inc esi
cmp byte [ebx + edi], 0x2e
jne 0x402795
test edi, edi
je 0x4026e1
lea ecx, [edx + edi + 1]
lea edi, [esp + 0x5c]
sub eax, esi
dec esi
and dword [edi], 0
mov dword [edi + 4], 1
and dword [edi + 8], 0
mov dword [esp + 0x2c], ecx
inc ecx
inc eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
sub esi, 1
jb 0x4027f8
mov al, byte [ebx]
mov ecx, edi
lea edx, [esp + 0x34]
mov byte [esp + 0x34], al
mov byte [esp + 0x35], 0
push 2
call fcn.00409ed2
pop eax
inc ebx
jmp 0x4027d7
lea edi, [esp + 0x5c]
mov edx, str..dll
mov ecx, edi
push 0xa
call fcn.00409ed2
pop eax
mov eax, dword [edi + 8]
mov edx, dword [edi + 4]
mov dword [esp], 0
lea ecx, [eax - 2]
mov dword [esp + 0x20], edx
mov word [esp + 0x54], cx
xor ecx, ecx
mov word [esp + 0x56], ax
mov dword [esp + 0x58], edx
cmp eax, ecx
je 0x40285f
mov edx, dword [esp + 0x20]
mov ebx, dword [esp]
movzx edx, byte [edx + ecx]
mov edi, edx
lea esi, [edx - 0x41]
or edi, 0x20
cmp esi, 0x1a
cmovae edi, edx
imul edx, ebx, 0x1003f
add edx, edi
test edi, edi
cmovne ebx, edx
inc ecx
mov dword [esp], ebx
jmp 0x40282f
push 0x18
pop eax
mov eax, dword fs:[eax]
lea esi, [esp + 0x34]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
and dword [esi], 0
mov dword [esi + 4], 3
lea ecx, [eax + 0xc]
lea edx, [eax + 0x14]
add eax, 0x1c
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
and dword [esi + 0x14], 0
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.004010c5
test byte [esp + 0x14], 1
je 0x402c7e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
shl eax, 3
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov ecx, dword [ecx]
cmp ecx, dword [esp + 8]
je 0x402908
mov eax, ecx
mov dword [esp + 4], ecx
sub eax, dword [esp + 0xc]
movzx ecx, word [eax + 0x2c]
mov edi, dword [eax + 0x30]
mov dword [esp + 0x10], eax
xor eax, eax
sub ecx, 1
jb 0x4028fd
movzx edx, byte [edi]
mov esi, edx
lea ebx, [edx - 0x41]
or esi, 0x20
cmp ebx, 0x1a
cmovae esi, edx
imul edx, eax, 0x1003f
add edx, esi
test esi, esi
cmovne eax, edx
inc edi
jmp 0x4028d7
cmp eax, dword [esp]
mov ecx, dword [esp + 4]
jne 0x4028b8
jmp 0x40290e
lea edx, [esp + 0x34]
jmp 0x402891
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x402b39
push 0x18
pop eax
mov eax, dword fs:[eax]
lea esi, [esp + 0x34]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
and dword [esi], 0
mov dword [esi + 4], 3
lea ecx, [eax + 0xc]
lea edx, [eax + 0x14]
add eax, 0x1c
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
and dword [esi + 0x14], 0
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.004010c5
test byte [esp + 0x14], 1
je 0x402c88
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
shl eax, 3
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov ecx, dword [ecx]
cmp ecx, dword [esp + 4]
je 0x4029c9
mov dword [esp], ecx
sub ecx, dword [esp + 8]
movzx ebx, word [ecx + 0x2c]
mov eax, dword [ecx + 0x30]
mov dword [esp + 0xc], ecx
xor ecx, ecx
sub ebx, 1
jb 0x4029bc
movzx edx, byte [eax]
mov esi, edx
lea edi, [edx - 0x41]
or esi, 0x20
cmp edi, 0x1a
cmovae esi, edx
imul edx, ecx, 0x1003f
add edx, esi
test esi, esi
cmovne ecx, edx
inc eax
jmp 0x402996
cmp ecx, 0xd22e2014
mov ecx, dword [esp]
jne 0x40297a
jmp 0x4029cf
lea edx, [esp + 0x34]
jmp 0x402953
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], eax
push 0x18
pop eax
mov eax, dword fs:[eax]
lea esi, [esp + 0x34]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
and dword [esi], 0
mov dword [esi + 4], 3
lea ecx, [eax + 0xc]
lea edx, [eax + 0x14]
add eax, 0x1c
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
and dword [esi + 0x14], 0
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.004010c5
test byte [esp + 0x14], 1
je 0x402c95
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
shl eax, 3
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov ecx, dword [ecx]
cmp ecx, dword [esp + 4]
je 0x402a82
mov dword [esp], ecx
sub ecx, dword [esp + 8]
movzx ebx, word [ecx + 0x2c]
mov eax, dword [ecx + 0x30]
mov dword [esp + 0xc], ecx
xor ecx, ecx
sub ebx, 1
jb 0x402a75
movzx edx, byte [eax]
mov esi, edx
lea edi, [edx - 0x41]
or esi, 0x20
cmp edi, 0x1a
cmovae esi, edx
imul edx, ecx, 0x1003f
add edx, esi
test esi, esi
cmovne ecx, edx
inc eax
jmp 0x402a4f
cmp ecx, 0xd22e2014
mov ecx, dword [esp]
jne 0x402a33
jmp 0x402a88
lea edx, [esp + 0x34]
jmp 0x402a0c
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x18]
mov edx, 0xf6c7ce24
call fcn.00402672
mov esi, dword [esp + 0x10]
mov edx, 0xeef3794a
mov edi, eax
mov ecx, esi
call fcn.00402672
mov ecx, esi
mov edx, 0x7fbeec6d
mov dword [esp], eax
call fcn.00402672
mov ecx, esi
mov edx, 0xcf995029
mov dword [esp + 8], eax
call fcn.00402672
mov ecx, esi
mov edx, 0x36162edc
mov dword [esp + 4], eax
call fcn.00402672
mov ebx, eax
lea eax, [esp + 0x54]
and dword [esp + 0x44], 0
and dword [esp + 0x40], 0
and dword [esp + 0x14], 0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], edi
and dword [esp + 0x38], 0
mov dword [esp + 0x3c], 4
push 0
lea eax, [esp + 0x38]
push eax
push section..text
lea eax, [esp + 0x20]
push eax
call dword [esp + 0x10]
push dword [esp + 0x14]
call dword [esp + 0xc]
push 0
push dword [esp + 0x18]
call dword [esp + 0xc]
push dword [esp + 0x14]
call ebx
mov eax, dword [esp + 0x24]
cmp byte [eax], 0x23
jne 0x402b87
mov edx, dword [esp + 0x2c]
add ebp, 0xfffffffe
lea edi, [esp + 0x34]
mov ecx, edi
add edx, 2
push ebp
call fcn.0040a191
pop eax
cmp dword [edi], 1
je 0x402c1d
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
cmp esi, 1
je 0x402bc7
test esi, esi
je 0x402c1d
cmp byte [ecx], 0x2b
jne 0x402bd9
inc ecx
cmp esi, 0xa
lea esi, [esi - 1]
jb 0x402bde
jmp 0x402bfa
mov ebx, dword [esp + 0x24]
xor eax, eax
xor edx, edx
cmp dword [esp + 0x30], eax
je 0x402bb7
movzx ecx, byte [ebx + eax]
mov edi, ecx
lea esi, [ecx - 0x41]
or edi, 0x20
cmp esi, 0x1a
cmovae edi, ecx
imul ecx, edx, 0x1003f
add ecx, edi
test edi, edi
cmovne edx, ecx
inc eax
jmp 0x402b8f
mov ecx, dword [esp + 0x28]
call fcn.00402672
mov ebx, eax
jmp 0x402c67
movzx eax, byte [ecx]
cmp eax, 0x2b
je 0x402c1d
cmp eax, 0x2d
je 0x402c1d
xor esi, esi
inc esi
jmp 0x402bde
cmp esi, 8
ja 0x402bfa
xor eax, eax
sub esi, 1
jb 0x402c1f
movzx edx, byte [ecx]
add edx, 0xffffffd0
cmp edx, 9
ja 0x402c1d
imul eax, eax, 0xa
inc ecx
add edx, eax
mov eax, edx
jmp 0x402be0
xor eax, eax
push 0xa
pop edi
sub esi, 1
jb 0x402c1f
mul edi
movzx edx, byte [ecx]
seto bl
add edx, 0xffffffd0
cmp edx, 9
ja 0x402c1d
test bl, bl
jne 0x402c1d
inc ecx
add eax, edx
jae 0x402bff
ud2
mov ebx, dword [esp + 0x28]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx + ebx + 0x78]
test edx, edx
je 0x402c1d
mov esi, dword [edx + ebx + 0x1c]
mov edi, dword [edx + ebx + 0x24]
mov ecx, dword [edx + ebx + 0x18]
xor ebp, ebp
add esi, ebx
add edi, ebx
mov dword [esp], ecx
mov dword [esp + 4], esi
cmp dword [esp], ebp
je 0x402c1d
movzx ecx, word [edi + ebp*2]
mov esi, dword [edx + ebx + 0x10]
inc ebp
add esi, ecx
cmp esi, eax
jne 0x402c47
cmp dword [esp], ecx
jbe 0x402c1d
mov eax, dword [esp + 4]
add ebx, dword [eax + ecx*4]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x20]
call fcn.00409eb3
mov eax, ebx
add esp, 0x68
pop esi
pop edi
pop ebx
pop ebp
ret
and dword [esp + 0x28], 0
jmp 0x402921
mov dword [esp + 0x10], 0
jmp 0x4029da
xor ecx, ecx
jmp 0x402a8f