Function at 0x49d7a1b0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x49d941ac], ebx
jne 0x49d8b8ce
push esi
push edi
push dword [ebp + 0x2c]
mov edi, dword [ebp + 0x18]
push dword [ebp + 0x28]
mov esi, dword [ebp + 8]
push dword [ebp + 0x24]
shr edi, 2
push dword [ebp + 0x20]
and edi, 1
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.49d79c37
cmp eax, ebx
jne 0x49d7bd3e
mov dword [ebp - 0xc], 1
push dword [esi + 0x18]
call fcn.49d713cf
mov dword [esi + 0x18], ebx
cmp dword [0x49d941ac], ebx
jne 0x49d7c041
test byte [ebp + 0x18], 1
jne 0x49d7bc68
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x28
push 0x30
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [esi + 4]
call fcn.49d74c13
push 0x10
mov dword [ebp - 0x38], eax
call fcn.49d7190d
mov cl, byte [esi + 0x10]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 1
mov byte [ebp - 0x2c], cl
mov dword [ebp - 0x3c], ebx
cmp cl, bl
jne 0x49d8b8d6
mov dword [eax], 0x49d7a2dc
push dword [ebp - 0x38]
call fcn.49d74c13
mov ecx, dword [ebp - 0x30]
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push 0x10
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x30]
push 0x10
push dword [ebp + 0xc]
mov dword [eax + 0xc], ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.49d79c37
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x49d8b8e1
cmp dword [0x49d941ac], ebx
jne 0x49d7c041
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x28], ebx
ja 0x49d7be3e
push dword [ebp - 0x20]
call fcn.49d713cf
push dword [ebp - 0x24]
call fcn.49d713cf
mov eax, dword [ebp - 0x30]
push dword [eax + 4]
call fcn.49d713cf
push dword [ebp - 0x30]
call fcn.49d713cf
push dword [ebp - 0x38]
call fcn.49d713cf
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x49d7a229
cmp dword [ebp - 0xc], ebx
jne 0x49d7a229
push 2
pop eax
jmp 0x49d7a229
cmp eax, 2
jne 0x49d7c033
test byte [ebp + 0x18], 1
jne 0x49d7a206
jmp 0x49d7a229
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x49d7beae
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x49d7bd60
mov ecx, dword [ebp - 8]
sub eax, edx
sar eax, 1
lea edx, [ecx + 2]
mov di, word [ecx]
inc ecx
inc ecx
cmp di, bx
jne 0x49d7bd74
sub ecx, edx
sar ecx, 1
lea edi, [eax + ecx + 2]
cmp edi, 0x104
ja 0x49d8b93c
push 0x30
lea eax, [ebp - 0x6c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [edi + edi]
push eax
call fcn.49d7190d
push dword [ebp - 8]
mov dword [ebp - 0x68], eax
push dword [esi + 4]
push edi
push eax
call fcn.49d7a25b
push dword [ebp + 0x2c]
mov eax, dword [esi + 0xc]
push dword [ebp + 0x28]
mov dword [ebp - 0x60], eax
push dword [ebp + 0x24]
mov eax, dword [esi + 8]
push dword [ebp + 0x20]
mov dword [ebp - 0x64], eax
push dword [ebp + 0x1c]
mov al, byte [esi + 0x10]
push dword [ebp + 0x18]
mov byte [ebp - 0x5c], al
push dword [ebp + 0x14]
lea eax, [ebp - 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.49d7a1b0
push dword [ebp - 0x54]
mov edi, eax
mov dword [ebp - 4], edi
call fcn.49d713cf
push dword [ebp - 0x50]
mov dword [ebp - 0x54], ebx
call fcn.49d713cf
push dword [ebp - 0x68]
mov dword [ebp - 0x50], ebx
call fcn.49d713cf
mov dword [ebp - 0x68], ebx
cmp edi, ebx
je 0x49d7c027
cmp edi, 0x6f
je 0x49d7be2c
cmp edi, 2
jne 0x49d8b90a
mov dword [ebp - 4], ebx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x28]
jae 0x49d7bcf7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov edi, dword [eax + ecx*4]
lea eax, [edi + 0x30]
mov dword [ebp - 8], eax
mov ecx, 0x49d72dc0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d7bed4
cmp dx, bx
je 0x49d7be74
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d7bed4
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x49d7be52
xor eax, eax
cmp eax, ebx
je 0x49d7be2f
mov eax, dword [ebp - 8]
mov ecx, 0x49d72db8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49d7bd56
cmp dx, bx
je 0x49d7beac
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49d7bd56
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x49d7be82
xor eax, eax
cmp eax, ebx
je 0x49d7be2f
test byte [ebp + 0x18], 2
jne 0x49d7bec9
test dword [edi + 4], 0x400
jne 0x49d8b8ec
mov eax, dword [esi + 4]
lea edx, [eax + 2]
jmp 0x49d7bd60
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x49d7be76
mov dword [ebp - 0xc], 1
jmp 0x49d7be2f
cmp eax, 3
je 0x49d7bd47
jmp 0x49d7a229
xor eax, eax
inc eax
jmp 0x49d7a229