Function at 0x49e588
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x248
mov edi, edx
mov dword [esp + 8], ecx
mov ecx, 0x200
xor edx, edx
call fcn.0050d387
lea esi, [esp + 0x6c]
lea ecx, [esp + 0x28]
mov dword [esi], eax
mov dword [esi + 4], edx
and dword [esi + 8], 0
mov edx, esi
call fcn.00497cc4
mov eax, dword [edi + 0x2c]
imul ecx, dword [edi + 0x3c], 0xf0
mov edx, dword [edi + 0x5c]
mov esi, dword [edi + 0x60]
mov ebx, edi
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x64], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x100]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x38]
add ecx, eax
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0xa8], ecx
imul ecx, dword [edi + 0x48], 0xf0
mov dword [esp + 0xac], eax
add ecx, eax
mov eax, dword [edi + 0x50]
mov dword [esp + 0xb0], ecx
imul ecx, dword [edi + 0x54], 0xf0
mov dword [esp + 0xb4], eax
add ecx, eax
cmp byte [edi + 0x24], 2
mov eax, 0
mov dword [esp + 0xb8], ecx
mov cl, byte [edx + 0x18]
cmove ebx, eax
mov byte [esp + 5], cl
mov ecx, esi
call fcn.004ae31b
cmp dword [esi], 0
je 0x49e689
mov ebx, dword [esp + 0x104]
mov esi, dword [esp + 8]
lea ecx, [esp + 0x28]
mov dword [esi + 4], ebx
mov dword [esi], 0x80000000
call fcn.00418ba9
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
call fcn.00454e92
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [edi + 0x64]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0xc]
imul esi, eax, 0x4c
and eax, 0x3fffffff
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
test esi, esi
lea edx, [esp + 0x28]
je 0x49e75e
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov dword [esp + 0x14], ecx
mov ecx, eax
call fcn.0049a887
test eax, eax
jne 0x49e71c
movzx edx, word [edi + 0x4a]
movzx ecx, word [edi + 0x48]
lea eax, [esp + 0x28]
push eax
call fcn.00499496
pop ecx
test eax, eax
jne 0x49e71c
movzx edx, word [edi + 0x46]
movzx ecx, word [edi + 0x44]
lea eax, [esp + 0x28]
push eax
call fcn.004ae943
pop ecx
test eax, eax
jne 0x49e71c
inc dword [esp + 0x20]
add edi, 0x4c
add esi, 0xffffffb4
mov eax, edi
jmp 0x49e6bf
mov dword [esp + 0x78], eax
mov ebx, eax
cmp word [eax], 0xf
mov eax, dword [esp + 0x20]
jne 0x49e65e
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x100]
mov dword [ecx + 4], eax
mov word [ecx], 0x13
call fcn.00489bc6
mov ebx, eax
lea eax, [esp + 0x78]
push eax
call fcn.00488104
pop eax
jmp 0x49e65e
lea eax, [esp + 0xa4]
lea esi, [esp + 0x100]
lea edx, [esp + 0x28]
mov ecx, esi
push eax
call fcn.004ae352
pop eax
lea edi, [esp + 0x78]
mov edx, esi
mov ecx, edi
call fcn.004ae3f6
mov bl, byte [edi + 4]
cmp bl, 2
je 0x49e7fe
lea esi, [esp + 0x78]
lea edi, [esp + 0x100]
lea edx, [esp + 0x28]
mov eax, dword [esi]
mov ecx, edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
push eax
call fcn.004ae352
pop eax
mov ecx, esi
mov edx, edi
call fcn.004ae3f6
mov al, byte [esi + 4]
cmp al, 2
je 0x49e7fe
mov byte [esp + 7], bl
lea ebx, [esp + 0x78]
mov byte [esp + 0x14], al
lea edi, [esp + 0x100]
lea eax, [esp + 0xb4]
lea edx, [esp + 0x28]
mov esi, dword [ebx]
mov ecx, edi
push eax
call fcn.004ae352
pop eax
mov edx, edi
mov ecx, ebx
mov edi, ebx
call fcn.004ae3f6
mov al, byte [ebx + 4]
cmp al, 2
jne 0x49e807
mov ebx, dword [esp + 0x78]
jmp 0x49e65e
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x58], esi
lea esi, [esp + 0x200]
mov byte [esp + 6], al
mov dword [esp + 0x18], ecx
mov ecx, esi
call fcn.0049ac54
cmp byte [esi + 0x24], 2
jne 0x49e90d
mov esi, dword [esp + 0x10]
movzx ecx, word [esi + 0x64]
movzx edx, word [esi + 0x66]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], edx
call fcn.004ae430
mov bh, byte [esp + 0x14]
test al, al
je 0x49e9cd
mov eax, dword [0x7f50bc]
mov bl, byte [esp + 7]
cmp eax, 2
jb 0x49eaa4
mov ecx, dword [0x7f2a00]
lea esi, [esp + 0xd4]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x50], ecx
mov ecx, dword [ecx + 0x18]
mov dword [esi], 2
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
call fcn.00513e14
push esi
mov dword [esp + 0x4c], eax
push eax
mov dword [esp + 0x54], edx
call dword [edx + 0xc]
add esp, 8
test al, al
je 0x49eaa0
mov eax, dword [esp + 0xdc]
movsd xmm0, qword [esp + 0xd4]
mov ecx, dword [0x7f2a00]
mov dword [esp + 0xd0], eax
movsd qword [esp + 0xc8], xmm0
lea eax, [ecx + 0x1c]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x44], eax
test edx, edx
je 0x49e9e2
mov eax, dword [ecx + 0x1c]
mov esi, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], esi
mov dword [esp + 0x10c], ecx
and dword [esp + 0x110], 0
jmp 0x49e9e4
push 0xa
pop ecx
lea ebx, [esp + 0x78]
lea esi, [esp + 0x200]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 0x66]
mov ecx, dword [eax + 0x64]
call fcn.004ae430
lea edi, [esp + 0x100]
mov edx, ebx
mov byte [ebx + 0x22], al
mov ecx, edi
call fcn.004ae439
lea esi, [esp + 0xe4]
lea edx, [esp + 0x28]
mov ecx, esi
push edi
call fcn.004ae584
pop eax
lea edi, [esp + 0xbc]
mov edx, esi
mov ecx, edi
call fcn.004ae3f6
mov bh, byte [edi + 4]
cmp bh, 2
jne 0x49e98f
mov ebx, dword [esp + 0xbc]
lea ecx, [esp + 0x100]
call fcn.0048d706
lea ecx, [esp + 0x78]
call fcn.0048d626
jmp 0x49e65e
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x100]
add eax, dword [esp + 0xbc]
mov dword [esp + 0x18], eax
call fcn.0048d706
or byte [esp + 6], bh
lea ecx, [esp + 0x78]
call fcn.0048d626
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov dl, byte [esp + 5]
mov bh, byte [esp + 0x14]
jmp 0x49e9d9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov dl, byte [esp + 5]
mov bl, byte [esp + 7]
jmp 0x49eab0
xor eax, eax
lea esi, [esp + 0x100]
mov ecx, edi
mov dword [esi], eax
mov edx, esi
push 0x72ddd8
call fcn.0052f9f9
pop eax
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xe0]
lea edx, [esp + 0x6a]
mov dword [esi], str.response_code:__for_request:__requires_EDNS_but_none_available
mov dword [esi + 4], 3
and dword [esi + 0x10], 0
mov word [eax], cx
mov ecx, dword [esp + 0x54]
mov word [eax + 2], cx
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + 0x68]
mov word [edx], cx
lea ecx, [esp + 0xe4]
mov dword [ecx], eax
lea eax, [esp + 0xbc]
mov dword [ecx + 4], 0x4ae606
mov dword [ecx + 8], edx
mov dword [esi + 8], ecx
mov dword [ecx + 0xc], fcn.0045c360
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov dword [esi + 0xc], 2
mov dword [eax], edi
lea edi, [esp + 0xf4]
mov dword [eax + 4], esi
mov dword [eax + 8], 0x72c02c
mov dword [edi], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 4], 1
mov dword [edi + 8], eax
lea eax, [esp + 0xc8]
push edi
push eax
mov eax, dword [esp + 0x54]
push dword [eax + 0x10]
call fcn.005de194
add esp, 0xc
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
mov dl, byte [esp + 5]
mov edi, dword [esp + 0x64]
test dl, dl
je 0x49eb08
imul eax, eax, 0xf0
lea esi, [esp + 0x100]
lea edx, [esp + 0x28]
add eax, edi
mov ecx, esi
push eax
push edi
call fcn.004ae7f6
pop eax
pop ecx
lea edi, [esp + 0x78]
mov edx, esi
mov ecx, edi
call fcn.004ae3f6
mov al, byte [edi + 4]
cmp al, 2
je 0x49e7fe
mov edi, dword [esp + 0x18]
mov dh, byte [esp + 6]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dl, bh
add edi, dword [esp + 0x78]
or dh, al
jmp 0x49eb12
mov dh, byte [esp + 6]
mov edi, dword [esp + 0x18]
mov dl, bh
lea eax, [esp + 0x1f0]
or dh, byte [esi + 0x74]
lea esi, [esp + 0x22e]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
or dh, bl
xor ebx, ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
or dh, dl
mov edx, dword [esp + 0x5c]
setne bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov ecx, esi
push eax
push ebx
call fcn.004ae62c
pop eax
pop ecx
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x28]
push esi
call fcn.004ae6e2
pop ecx
mov esi, dword [esp + 8]
mov ebx, eax
test eax, eax
jne 0x49e662
lea ecx, [esp + 0x28]
call fcn.00418ba9
mov eax, dword [esp + 0x74]
movsd xmm0, qword [esp + 0x6c]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
jmp 0x49e681