Function at 0x43780c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [0x5a1014]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [esp + 0x18], edx
xor edx, edx
push 0
mov dword [esp + 0x20], esi
call fcn.00437acc
push 2
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.0044b880
push 0
xor edx, edx
mov ecx, ebx
call fcn.00437acc
mov eax, 0x5a4d
cmp word [esp + 0x10], ax
je 0x49d609
xor al, al
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047a40f
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
cmp edi, 0x40
jb 0x437867
push 0x40
lea edx, [esp + 0x54]
mov ecx, ebx
call fcn.0044b880
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x437867
lea eax, [edx + 4]
cmp eax, edi
ja 0x437867
push 0
mov ecx, ebx
call fcn.00437acc
push 4
lea edx, [esp + 0x18]
mov ecx, ebx
call fcn.0044b880
cmp dword [esp + 0x14], 0x4550
jne 0x437867
push 1
xor edx, edx
mov ecx, ebx
call fcn.00437acc
mov edx, dword [esp + 0x18]
mov ecx, ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x50]
push 0
push eax
call fcn.0044bf74
cmp dword [esp + 0x50], 1
je 0x49d696
push 0x470
push dword [esp + 0x1c]
call fcn.0047dc0b
cmp word [esp + 0x64], 0
je 0x49d861
mov eax, 0xf0
cmp edi, eax
jae 0x49d6ad
mov eax, edi
push eax
lea edx, [esp + 0xdc]
mov ecx, ebx
call fcn.0044b880
mov eax, 0x10b
cmp word [esp + 0xd8], ax
jne 0x49d6ef
cmp dword [esp + 0x134], 0xe
lea eax, [esp + 0x1a8]
sbb edi, edi
not edi
and edi, eax
mov dword [esp + 0x20], edi
jne 0x49d704
mov byte [esi + 0x38], 0
jmp 0x437867
cmp dword [esp + 0x144], 0xe
jb 0x49d6e6
lea edi, [esp + 0x1b8]
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x14]
movzx eax, word [esp + 0x64]
add ecx, 0x14
add eax, ecx
mov dword [esp + 0x24], eax
movzx eax, word [esp + 0x56]
imul eax, eax, 0x28
mov dword [esp + 0x10], eax
push eax
call dword [sym.imp.tbbmalloc.dll_scalable_malloc]
mov esi, eax
mov dword [esp + 0x18], esi
pop ecx
test esi, esi
jne 0x49d746
call fcn.004575aa
test al, al
mov eax, dword [esp + 0x10]
jne 0x49d722
call fcn.004fd4dc
mov edx, dword [esp + 0x24]
mov ecx, ebx
push 0
call fcn.00437acc
push dword [esp + 0x10]
mov edx, esi
mov ecx, ebx
call fcn.0044b880
movzx eax, word [esp + 0x56]
xor ecx, ecx
inc ecx
mov dword [esp + 0x10], ecx
cmp eax, ecx
jb 0x49d7ab
push 0xa
pop ecx
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x28]
mov esi, dword [edi]
mov edx, esi
call fcn.00472696
test al, al
jne 0x49d7c1
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc eax
movzx ecx, word [esp + 0x56]
add esi, 0x28
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
cmp eax, ecx
jle 0x49d770
mov ecx, ebx
call fcn.0043806a
push eax
push 0x453
push dword [esp + 0x20]
jmp 0x49d872
sub esi, dword [esp + 0x34]
add esi, dword [esp + 0x3c]
mov eax, dword [edi + 4]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x437867
push 0
mov edx, esi
mov ecx, ebx
call fcn.00437acc
push 0x48
lea edx, [esp + 0x94]
mov ecx, ebx
call fcn.0044b880
test byte [esp + 0xa0], 1
je 0x49d831
push 0
xor edx, edx
mov ecx, ebx
call fcn.00437acc
mov eax, 0x14c
cmp word [esp + 0x54], ax
jne 0x49d827
test byte [esp + 0xa0], 2
jne 0x49d827
mov ecx, dword [esp + 0x1c]
or dword [ecx + 0x28], 4
jmp 0x49d835
mov ecx, dword [esp + 0x1c]
or dword [ecx + 0x28], 2
jmp 0x49d835
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xa4]
lea edi, [ecx + 0x14]
or dword [ecx + 0x28], 1
mov esi, 0x428d74
mov dword [ecx + 0x34], eax
mov al, 1
mov byte [ecx + 0x38], 1
mov dword [ecx + 4], 4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x437869
mov ecx, ebx
call fcn.0043806a
push eax
push 0x453
push dword [esp + 0x20]
call fcn.0047dc0b
int3