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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
mov ecx, dword [edx + 4]
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov dword [esi + 8], eax
mov edi, 0xffff
mov eax, ecx
and eax, edi
mov dword [esi + 0xc], eax
mov eax, dword [edx + 8]
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x48]
test al, 0x40
jne 0x40b542
and edi, eax
jmp 0x40b578
mov edi, eax
test al, 2
jne 0x40b550
and edi, 0xffbf
jmp 0x40b578
test al, 1
jne 0x40b561
test ax, ax
js 0x40b56c
and edi, 0xffbd
jmp 0x40b578
and edi, 0xffbc
or edi, 0x40
jmp 0x40b578
and edi, 0x7f3d
or edi, 0x80
mov dword [esi + 0x38], edi
sar eax, 0x10
mov dword [esi + 0x34], eax
mov eax, dword [edx + 0x18]
movzx edx, ax
mov dword [esi + 0x2c], edx
sar eax, 0x10
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x78]
test eax, eax
je 0x40b739
mov edx, dword [eax + 0x60]
mov byte [esi + 0x3c], 0
mov dword [esi + 0x40], 0
movzx ecx, cx
cmp ecx, 0x3000
jle 0x40b5da
lea edx, [ecx - 0x4001]
cmp edx, 7
jbe switch.0x0040b60e
lea edx, [ecx - 0x3001]
cmp edx, 5
jb case.0x40b5e5.8195
add ecx, 0xffff9fff
cmp ecx, 4
jb case.0x40b5e5.8195
jmp 0x40b70e
lea edi, [ecx - 0x2001]
cmp edi, 9
ja case.default.0x40b5e5
jmp dword [edi*4 + 0x44a6ec]
cmp dword [eax], 1
jne 0x40b70e
cmp dword [eax + 0x20], 5
je 0x40b605
cmp dword [eax + 0x24], 5
jne 0x40b70e
mov byte [esi + 0x3c], 1
jmp 0x40b70e
jmp dword [edx*4 + 0x44a714]
mov byte [esi + 0x3c], 1
mov dword [esi + 0x40], 0
jmp 0x40b70e
lea eax, [ecx - 0x1003]
cmp eax, 2
jae 0x40b668
mov byte [esi + 0x3c], 1
movzx eax, byte [esi + 0x29]
neg eax
jmp case.default.0x40b6aa
cmp dword [eax], 1
jne 0x40b70e
cmp dword [eax + 0x20], 5
je 0x40b658
cmp dword [eax + 0x24], 5
jne 0x40b70e
mov byte [esi + 0x3c], 1
mov dword [esi + 0x40], 1
jmp 0x40b70e
cmp ecx, 0x1005
jne 0x40b70e
mov byte [esi + 0x3c], 1
movzx eax, byte [esi + 0x29]
jmp case.default.0x40b6aa
cmp dword [eax], 1
jne 0x40b70e
cmp dword [eax + 0x20], 5
je 0x40b696
cmp dword [eax + 0x24], 5
jne 0x40b70e
mov byte [esi + 0x3c], 1
xor eax, eax
cmp dword [edx], 2
jne case.default.0x40b6aa
mov ecx, dword [edx + 4]
dec ecx
cmp ecx, 3
ja case.default.0x40b6aa
jmp dword [ecx*4 + 0x44a744]
mov eax, dword [edx + 0x10]
jmp case.default.0x40b6aa
cmp dword [eax], 1
jne 0x40b70e
cmp dword [eax + 0x20], 5
je 0x40b6c7
cmp dword [eax + 0x24], 5
jne 0x40b70e
mov byte [esi + 0x3c], 1
xor eax, eax
cmp dword [edx], 2
jne case.default.0x40b6e3
mov ecx, dword [edx + 4]
dec ecx
cmp ecx, 3
ja case.default.0x40b6e3
jmp dword [ecx*4 + 0x44a734]
mov eax, dword [edx + 0x10]
jmp case.default.0x40b6e3
mov byte [esi + 0x3c], 1
cmp dword [eax], 1
jne 0x40b707
cmp dword [eax + 0x20], 5
je 0x40b70e
cmp dword [eax + 0x24], 5
je 0x40b70e
movzx eax, byte [esi + 0x2a]
mov dword [esi + 0x40], eax
lea edi, [esi + 0x68]
push edi
push 0x455007
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x40b735
push edi
push 0x4553f3
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
jne 0x40b739
mov byte [esi + 0x3c], 1
pop esi
pop edi
pop ebp
ret
movsx eax, byte [edx + 0x10]
jmp case.default.0x40b6aa
movsx eax, word [edx + 0x10]
jmp case.default.0x40b6aa
movsx eax, byte [edx + 0x10]
jmp case.default.0x40b6e3
movsx eax, word [edx + 0x10]
jmp case.default.0x40b6e3