Function at 0x437541
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4d3710
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x518450]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x68], ebp
mov edi, dword [esp + 0xa8]
xor ebx, ebx
mov dword [esp + 0x58], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
movzx ecx, byte [edi]
lea esi, [edi + 2]
mov eax, 0x100
mov dword [esp + 0xa0], ebx
imul cx, ax
movzx eax, byte [edi + 1]
mov edx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], ebx
add cx, ax
movzx eax, cx
xor ecx, ecx
mov dword [esp + 0x5c], eax
cmp cx, ax
jae 0x437835
push esi
call fcn.0040671b
add esi, 4
mov dword [esp + 0x58], eax
pop ecx
mov eax, 0x100
mov dword [esp + 0x70], esi
mov dword [esp + 0x38], ebx
movzx ecx, byte [esi]
imul cx, ax
movzx eax, byte [esi + 1]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
add cx, ax
movzx ecx, cx
mov dword [esp + 0x60], ecx
xor edx, edx
mov byte [esp + 0xa0], 1
mov eax, ebx
cmp dx, cx
jmp 0x4377ff
movzx eax, ax
lea eax, [eax*4 + 2]
add eax, esi
push eax
call fcn.0040671b
add edi, eax
push edi
call fcn.0040671b
add edi, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], edi
pop ecx
pop ecx
lea esi, [edi + eax*4]
mov dword [esp + 0x14], esi
test eax, eax
je 0x4377ed
cmp dword [esp + 0x38], 0
jne 0x4376c0
push dword [esp + 0x54]
push 0xbbb9eaab
push 0xf57a868e
push 0x7684fbde
call fcn.00402173
add esp, 0xc
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.004bad3c
mov ecx, dword [ebp + 0x5c]
lea eax, [esp + 0x80]
add esp, 0xc
push ebx
push eax
call fcn.0044572d
mov dword [esp + 0x38], eax
test eax, eax
je 0x437879
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.0044555c
pop ecx
pop ecx
test eax, eax
je 0x437879
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4377ed
xor ebp, ebp
push edi
call fcn.0040671b
movzx ebx, byte [esi + 2]
mov edx, eax
movzx edi, byte [esi + 1]
mov eax, ebx
shr eax, 4
and ebx, 0xf
shl edi, 4
or edi, eax
shl ebx, 8
movzx eax, byte [esi + 3]
or ebx, eax
movzx eax, byte [esi]
shr eax, 6
pop ecx
mov dword [esp + 0x64], eax
xor ecx, ecx
mov eax, dword [esp + 0x14]
add edi, edx
push ebp
adc ecx, ebp
xor esi, esi
push 0xc0
movzx eax, byte [eax + 4]
add ebx, edi
cdq
push ecx
push edi
adc esi, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edx
call fcn.004c0e50
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
adc dword [esp + 0x24], edx
push ebp
push 0xc0
movzx eax, byte [eax + 5]
cdq
push esi
push ebx
mov edi, eax
mov dword [esp + 0x30], edx
call fcn.004c0e50
mov ecx, dword [esp + 0x20]
add edi, eax
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x64]
adc ecx, edx
mov dword [esp + 0x20], ecx
cmp edi, 1
je 0x437767
cmp edi, 2
jne 0x437799
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x48]
mov edx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esi + 6]
push eax
push edx
push dword [esp + 0x38]
call fcn.00436af9
mov ebx, dword [esp + 0x2c]
add esp, 0x14
mov ecx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x18], ebx
jmp 0x4377a1
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp edi, 1
je 0x4377ab
cmp edi, 2
jne 0x4377cb
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esi + 0xb]
push eax
push ecx
push dword [esp + 0x7c]
call fcn.00436af9
add esp, 0x14
inc ebx
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x2c]
add esi, 0x10
add edi, 4
mov dword [esp + 0x14], esi
dec dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
jne 0x4376ca
mov ebp, dword [esp + 0x68]
xor ebx, ebx
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x70]
inc eax
cmp ax, word [esp + 0x60]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x34], eax
jb 0x437624
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa0], bl
call fcn.0040ab0c
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp ax, word [esp + 0x5c]
jb 0x4375d4
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x4c]
mov ecx, ebp
push eax
call fcn.0042c19e
mov bl, 1
lea ecx, [esp + 0x48]
call fcn.0040ab0c
mov al, bl
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004b9a6c
add esp, 0x90
ret 8
mov dword [ebp + 0x74], 0x22
lea ecx, [esp + 0x3c]
mov al, byte [ebp + 0x26]
mov byte [ebp + 0x78], al
mov al, byte [ebp + 0x30]
mov byte [ebp + 0x79], al
mov al, byte [ebp + 0x31]
mov byte [ebp + 0x7a], al
call fcn.0040ab0c
jmp 0x437844