Function at 0x405340
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x270
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x224], 0x8e6039e8
mov eax, dword [ebp - 0x224]
mov ecx, eax
sub ecx, 0xb3ddd23d
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x22c], ecx
jg 0x4053a9
jmp 0x40538d
mov eax, dword [ebp - 0x228]
sub eax, 0x8e6039e8
mov dword [ebp - 0x230], eax
je 0x405552
jmp 0x40554d
mov eax, dword [ebp - 0x228]
sub eax, 0x4fedba46
mov dword [ebp - 0x234], eax
jg 0x405531
jmp 0x4053c5
mov eax, dword [ebp - 0x228]
sub eax, 0x3ebf62a8
mov dword [ebp - 0x238], eax
jg 0x405515
jmp 0x4053e1
mov eax, dword [ebp - 0x228]
sub eax, 0x322ca0a5
mov dword [ebp - 0x23c], eax
jg 0x4054f9
jmp 0x4053fd
mov eax, dword [ebp - 0x228]
sub eax, 0xb5ca8d02
mov dword [ebp - 0x240], eax
jg 0x405435
jmp 0x405419
mov eax, dword [ebp - 0x228]
sub eax, 0xb3ddd23e
mov dword [ebp - 0x244], eax
je 0x405617
jmp 0x40554d
mov eax, dword [ebp - 0x228]
sub eax, 0xc7217d5e
mov dword [ebp - 0x248], eax
jg 0x40546d
jmp 0x405451
mov eax, dword [ebp - 0x228]
sub eax, 0xb5ca8d03
mov dword [ebp - 0x24c], eax
je 0x40567b
jmp 0x40554d
mov eax, dword [ebp - 0x228]
sub eax, 0xe25ad5cb
mov dword [ebp - 0x250], eax
jg 0x4054a5
jmp 0x405489
mov eax, dword [ebp - 0x228]
sub eax, 0xc7217d5f
mov dword [ebp - 0x254], eax
je 0x4055c7
jmp 0x40554d
mov eax, dword [ebp - 0x228]
sub eax, 0xe25ad5cc
mov dword [ebp - 0x258], eax
je 0x405574
jmp 0x4054c1
mov eax, dword [ebp - 0x228]
sub eax, 0x24a54755
mov dword [ebp - 0x25c], eax
je 0x40564c
jmp 0x4054dd
mov eax, dword [ebp - 0x228]
sub eax, 0x24bb5057
mov dword [ebp - 0x260], eax
je 0x405691
jmp 0x40554d
mov eax, dword [ebp - 0x228]
sub eax, 0x322ca0a6
mov dword [ebp - 0x264], eax
je 0x405664
jmp 0x40554d
mov eax, dword [ebp - 0x228]
sub eax, 0x3ebf62a9
mov dword [ebp - 0x268], eax
je 0x4055f5
jmp 0x40554d
mov eax, dword [ebp - 0x228]
sub eax, 0x4fedba47
mov dword [ebp - 0x26c], eax
je 0x40559d
jmp 0x40554d
jmp 0x40569d
mov eax, 0xc7217d5f
mov ecx, 0xe25ad5cc
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
cmp byte [esi + edx], 0
cmovne eax, ecx
mov dword [ebp - 0x224], eax
jmp 0x40569d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
movsx eax, dl
mov si, ax
mov eax, dword [ebp - 0x14]
mov word [ebp + eax*2 - 0x21e], si
mov dword [ebp - 0x224], 0x4fedba47
jmp 0x40569d
mov eax, 0
mov ecx, dword [ebp - 0x14]
mov edx, eax
sub edx, ecx
mov ecx, eax
sub ecx, 1
add edx, ecx
sub eax, edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x224], 0x8e6039e8
jmp 0x40569d
mov eax, dword [ebp - 0x14]
mov word [ebp + eax*2 - 0x21e], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x224], 0x3ebf62a9
jmp 0x40569d
mov eax, 0xb5ca8d03
mov ecx, 0xb3ddd23e
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x18], 0
cmovne eax, ecx
mov dword [ebp - 0x224], eax
jmp 0x40569d
lea eax, [ebp - 0x21e]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00409840
mov ecx, 0x322ca0a6
mov edx, 0x24a54755
cmp eax, 0
cmove ecx, edx
mov dword [ebp - 0x224], ecx
jmp 0x40569d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 0x224], 0x24bb5057
jmp 0x40569d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x224], 0x3ebf62a9
jmp 0x40569d
mov dword [ebp - 8], 0
mov dword [ebp - 0x224], 0x24bb5057
jmp 0x40569d
mov eax, dword [ebp - 8]
add esp, 0x270
pop esi
pop ebp
ret
jmp 0x405368