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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 0x150], 0xffffffff
mov edx, dword [ebp + 8]
mov dword [edx + 0x14c], 0xffffffff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x144]
mov edx, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [edx + eax + 0x28]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov esi, dword [edx + ecx*8 + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x140]
mov ecx, dword [ebp + 8]
movsx eax, word [ecx + 0x14]
imul edx, eax
lea edx, [edx + edx*4]
add esi, edx
test esi, esi
je 0x4057c1
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x4057b1
xor eax, eax
mov al, byte [esi + 4]
sar eax, 4
mov byte [ebp - 9], al
imul ebx, dword [ebp - 4], 0xac
add ebx, 0x410eac
cmp byte [esi + 3], 3
je 0x4054af
cmp byte [esi + 3], 5
je 0x4054af
xor eax, eax
jmp 0x4054b4
mov eax, 1
cmp byte [esi + 1], 0
je 0x4054c7
test al, al
jne 0x4054c7
mov dl, byte [esi + 1]
add dl, 0xff
mov byte [ebx + 0x66], dl
cmp byte [esi], 0
je 0x4054dc
cmp byte [esi], 0xff
je 0x4054dc
test al, al
jne 0x4054dc
mov cl, byte [esi]
add cl, 0xff
mov byte [ebx], cl
xor edx, edx
mov dl, byte [ebx + 0x66]
mov ecx, dword [ebp + 8]
movsx ecx, word [ecx + 0x20]
cmp edx, ecx
jl 0x405501
mov edi, 0x4124b8
mov dword [ebp - 8], 0x412430
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [edx], ecx
jmp 0x405543
mov edx, dword [ebp + 8]
mov edi, dword [edx + 4]
xor edx, edx
mov dl, byte [ebx + 0x66]
imul ecx, edx, 0x154
add edi, ecx
xor edx, edx
mov dl, byte [ebx]
cmp byte [edi + edx + 0x44], 0x10
jb 0x405528
mov dword [ebp - 8], 0x412430
jmp 0x405539
xor ecx, ecx
mov cl, byte [ebx]
xor edx, edx
mov dl, byte [edi + ecx + 0x44]
mov ecx, dword [edi + edx*4 + 4]
mov dword [ebp - 8], ecx
test al, al
jne 0x405543
mov edx, dword [ebp - 8]
mov dword [ebx + 8], edx
cmp byte [ebx + 0x6c], 7
jne 0x405555
cmp byte [esi + 3], 7
je 0x405555
mov ecx, dword [ebx + 0x18]
add dword [ebx + 0x10], ecx
mov dl, byte [esi + 3]
mov byte [ebx + 0x6c], dl
xor ecx, ecx
mov dword [ebx + 0x18], ecx
mov byte [ebx + 2], 0
cmp byte [esi], 0
je 0x4055b8
cmp byte [esi], 0xff
je 0x4055b8
mov edx, dword [ebp - 8]
mov cl, byte [edx + 0x1f]
add cl, byte [esi]
add cl, 0xff
mov byte [ebx + 0x67], cl
mov edx, dword [ebp + 8]
test byte [edx + 0x22], 1
je 0x4055aa
xor ecx, ecx
mov cl, byte [ebx + 0x67]
shl ecx, 4
shl ecx, 2
mov edx, 0x1e00
sub edx, ecx
mov ecx, dword [ebp - 8]
movsx ecx, byte [ecx + 0x11]
sar ecx, 1
jns 0x4055a5
adc ecx, 0
sub edx, ecx
mov dword [ebx + 0x68], edx
test al, al
jne 0x4055b4
mov eax, dword [ebx + 0x68]
mov dword [ebx + 0xc], eax
mov byte [ebx + 2], 8
xor edx, edx
mov dword [ebx + 0x1c], edx
or byte [ebx + 2], 1
or byte [ebx + 2], 2
cmp byte [esi + 1], 0
je 0x4055d7
push dword [ebp - 8]
push ebx
call fcn.00405380
add esp, 8
cmp byte [esi + 2], 0
je 0x4055ea
mov al, byte [esi + 2]
push eax
push ebx
call fcn.00404f6d
add esp, 8
cmp byte [esi], 0xff
je 0x4055f5
cmp byte [esi + 3], 0x14
jne 0x4055f9
mov byte [ebx + 0x65], 1
test byte [edi + 0x14c], 1
je 0x405659
cmp byte [ebx + 0x3c], 0
jne 0x405664
push 2
lea edx, [ebx + 0x38]
push edx
lea ecx, [ebx + 0x3c]
push ecx
lea eax, [ebx + 0x30]
push eax
lea edx, [ebx + 0x34]
push edx
mov cl, byte [edi + 0x146]
push ecx
mov al, byte [edi + 0x147]
push eax
mov dl, byte [edi + 0x148]
push edx
lea ecx, [edi + 0xa4]
push ecx
xor eax, eax
mov al, byte [edi + 0x144]
push eax
mov dl, byte [edi + 0x14c]
push edx
lea ecx, [ebx + 0x28]
push ecx
lea eax, [ebx + 0x2c]
push eax
push ebx
call fcn.00404e40
add esp, 0x38
jmp 0x405664
cmp byte [ebx + 0x65], 0
je 0x405664
xor edx, edx
mov dword [ebx + 0x34], edx
test byte [edi + 0x14d], 1
je 0x4056c2
cmp byte [ebx + 0x54], 0
jne 0x4056c2
push 4
lea ecx, [ebx + 0x50]
push ecx
lea eax, [ebx + 0x54]
push eax
lea edx, [ebx + 0x48]
push edx
lea ecx, [ebx + 0x4c]
push ecx
mov al, byte [edi + 0x149]
push eax
mov dl, byte [edi + 0x14a]
push edx
mov cl, byte [edi + 0x14b]
push ecx
lea eax, [edi + 0xf4]
push eax
xor edx, edx
mov dl, byte [edi + 0x145]
push edx
mov cl, byte [edi + 0x14d]
push ecx
lea eax, [ebx + 0x40]
push eax
lea edx, [ebx + 0x44]
push edx
push ebx
call fcn.00404e40
add esp, 0x38
cmp byte [ebx + 0x65], 0
je 0x4056e1
movzx ecx, word [edi + 0x152]
sub dword [ebx + 0x58], ecx
cmp dword [ebx + 0x58], 0
jge 0x4056dd
xor eax, eax
mov dword [ebx + 0x58], eax
or byte [ebx + 2], 2
xor edx, edx
mov dl, byte [esi + 3]
cmp edx, 0xe
ja case.0x4056f5.0
mov dl, byte [edx + 0x4056fc]
jmp dword [edx*4 + 0x40570b]
cmp byte [esi + 4], 0
je case.0x4056f5.0
mov cl, byte [esi + 4]
mov byte [ebx + 0x79], cl
jmp case.0x4056f5.0
cmp byte [esi + 4], 0
je case.0x4056f5.0
mov al, byte [esi + 4]
mov byte [ebx + 0x78], al
jmp case.0x4056f5.0
cmp byte [esi + 4], 0
je 0x405750
mov dl, byte [esi + 4]
mov byte [ebx + 0x84], dl
mov ecx, dword [ebx + 0x68]
mov dword [ebx + 0x80], ecx
and byte [ebx + 2], 0xf7
and byte [ebx + 2], 0xfe
jmp case.0x4056f5.0
xor eax, eax
mov al, byte [ebp - 9]
cmp eax, 0xf
ja case.0x4056f5.0
mov al, byte [eax + 0x40577a]
jmp dword [eax*4 + 0x40578a]
push edi
push ebx
call fcn.00404d10
add esp, 8
push dword [ebp + 8]
push dword [ebp - 8]
push ebx
call fcn.004050aa
add esp, 0xc
inc dword [ebp - 4]
add esi, 5
mov edx, dword [ebp + 8]
movsx ecx, word [edx + 0x14]
cmp ecx, dword [ebp - 4]
jg 0x405487
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret