Function at 0x49d030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2a8
mov eax, dword [0x4e7744]
xor eax, esp
mov dword [esp + 0x2a4], eax
push ebx
mov ebx, dword [esp + 0x2b0]
push ebp
push esi
push edi
mov eax, dword [ebx + 4]
xor esi, esi
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x44], eax
push 0x38
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x1c], esi
lea eax, [eax + eax*2]
mov dword [esp + 0x28], edi
shl eax, 4
add eax, edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x214]
push eax
call fcn.004ac5e0
movzx eax, byte [ebp + 0x10]
add esp, 0xc
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
lea eax, [eax + ecx*8]
mov dword [esp + 0x48], eax
mov eax, dword [eax + 0x34]
mov dword [esp + 0x40], eax
cmp edi, dword [esp + 0x18]
jae 0x49d515
mov bx, word [esp + 0x20c]
mov edx, 0x200
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x10], ebx
jmp 0x49d0d0
test eax, eax
jne 0x49d517
test word [edi + 0xc], dx
je 0x49d4fe
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x198]
mov eax, dword [edx + 0x19c]
and ecx, dword [ebp + 8]
and eax, dword [ebp + 0xc]
or ecx, eax
je 0x49d50f
mov eax, dword [edx + 0xc]
lea edi, [esp + 0x58]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x2c], 1
lea ecx, [eax + eax*2]
shl ecx, 4
lea eax, [esp + 0x244]
add ecx, dword [edx + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x60], 0
mov ebp, dword [edx + 0x14]
mov dword [esp + 0x38], ebp
cmp ebp, eax
jae 0x49d466
lea esp, [esp]
mov ecx, 0x400
test word [ebp + 0xc], cx
je 0x49d160
mov eax, dword [ebp + 0x18]
jmp 0x49d196
mov ecx, dword [esp + 0x40]
cmp dword [ebp + 0x14], ecx
jne 0x49d447
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x74]
mov dword [esp + 0x78], ecx
mov byte [esp + 0x7c], 0x2c
mov dword [esp + 0x80], 1
mov dword [esp + 0x88], ebp
mov esi, dword [esp + 0x2c4]
mov edi, dword [esp + 0x2c0]
mov dword [esp + 0x5c], eax
xor eax, eax
mov word [esp + 0x244], ax
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], 0
lea eax, [esp + 0x58]
je 0x49d1de
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push esi
push edi
push eax
call fcn.0049d530
add esp, 0x14
jmp 0x49d1e9
push esi
push edi
push eax
call fcn.0049c250
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x49d212
push dword [esp + 0x2cc]
lea eax, [esp + 0x5c]
push dword [esp + 0x2cc]
push esi
push edi
push eax
call fcn.0049d030
add esp, 0x14
mov dword [esp + 0x14], eax
mov si, word [esp + 0x244]
test si, si
je 0x49d458
cmp dword [esp + 0x2c], 0
je 0x49d25e
movzx eax, si
shl eax, 4
push eax
lea eax, [esp + 0x250]
mov word [esp + 0x210], si
push eax
lea eax, [esp + 0x21c]
push eax
call fcn.004ac060
add esp, 0xc
mov dword [esp + 0x2c], 0
jmp 0x49d437
movzx eax, bx
shl eax, 4
push eax
lea eax, [esp + 0x218]
mov word [esp + 0x280], bx
push eax
lea eax, [esp + 0x28c]
push eax
call fcn.004ac060
movzx edx, word [esp + 0x288]
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x10], ebx
mov word [esp + 0x20c], bx
mov dword [esp + 0x34], edx
test edx, edx
je 0x49d443
lea ecx, [esp + 0x28c]
movzx eax, si
mov dword [esp + 0x10], ecx
jmp 0x49d2c0
mov dword [esp + 0x30], 0
test eax, eax
je 0x49d41f
movzx ebp, word [ecx + 2]
lea esi, [esp + 0x254]
movzx eax, word [ecx]
mov edx, dword [ecx - 8]
mov ecx, dword [ecx - 4]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
movsx edi, bp
movsx ebx, ax
mov dword [esp + 0x24], esi
lea ebx, [ebx]
movzx edx, word [esi + 2]
movsx eax, dx
cmp bp, dx
jl 0x49d334
lea ecx, [eax + 0x31]
cmp edi, ecx
jle 0x49d318
movzx esi, bp
jmp 0x49d35a
lea ecx, [eax + 0x1f]
cmp edi, ecx
jle 0x49d324
lea eax, [ebp + 1]
jmp 0x49d357
mov ecx, edi
sub ecx, eax
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, bp
jmp 0x49d357
lea ecx, [edi + 0x31]
cmp eax, ecx
jle 0x49d33f
mov esi, edx
jmp 0x49d35a
lea ecx, [edi + 0x1f]
cmp eax, ecx
jle 0x49d34b
lea eax, [edx + 1]
jmp 0x49d357
sub eax, edi
movzx eax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ax, dx
movzx esi, ax
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
movzx edx, word [eax]
movzx eax, word [ebp]
movsx ecx, dx
cmp ax, dx
jl 0x49d3a7
lea eax, [ecx + 0x31]
cmp ebx, eax
jle 0x49d37f
mov ecx, ebp
movzx eax, word [ecx]
jmp 0x49d3cd
lea eax, [ecx + 0x1f]
cmp ebx, eax
jle 0x49d390
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx]
inc eax
jmp 0x49d3ca
mov edx, dword [esp + 0x10]
mov eax, ebx
sub eax, ecx
movzx ecx, word [edx]
movzx eax, byte [eax + str._n_n_t_t_b_b_a_a_a]
add ax, cx
jmp 0x49d3ca
lea eax, [ebx + 0x31]
cmp ecx, eax
jle 0x49d3b2
mov eax, edx
jmp 0x49d3cd
lea eax, [ebx + 0x1f]
cmp ecx, eax
jle 0x49d3be
lea eax, [edx + 1]
jmp 0x49d3ca
sub ecx, ebx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, dx
movzx eax, ax
mov ecx, dword [esp + 0x4c]
push esi
mov esi, dword [esp + 0x28]
push eax
mov eax, dword [esi - 4]
or eax, dword [esp + 0x58]
or ecx, dword [esi - 8]
push eax
push ecx
lea eax, [esp + 0x21c]
push eax
call fcn.0049e600
mov ecx, dword [esp + 0x44]
add esi, 0x10
movzx eax, word [esp + 0x258]
inc ecx
mov ebp, dword [esp + 0x68]
add esp, 0x14
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], esi
cmp ecx, eax
jl 0x49d300
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
add ecx, 0x10
sub edx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], edx
jne 0x49d2c0
mov ebp, dword [esp + 0x38]
mov bx, word [esp + 0x20c]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x1c]
add ebp, 0x30
mov dword [esp + 0x38], ebp
cmp ebp, eax
jb 0x49d150
jmp 0x49d466
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov word [esp + 0x20c], bx
mov ebp, dword [esp + 0x28]
mov eax, 1
mov ecx, dword [esp + 0x20]
xor edi, edi
mov word [ebp + 0x28], ax
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
xor eax, eax
mov word [ebp + 0x12], ax
mov byte [ebp + 0x11], al
mov dword [ebp + 0x24], 0x2000
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x49d4f1
movzx ebp, bx
lea esi, [esp + 0x21e]
mov ebx, dword [esp + 0x28]
lea ecx, [ecx]
cmp edi, ebp
jge 0x49d4e5
movzx eax, word [esi - 2]
mov ecx, dword [esi - 6]
inc ax
mov word [ebx + 0x14], ax
movzx eax, word [esi]
push ebx
push dword [esp + 0x40]
mov word [ebx + 0x16], ax
mov eax, dword [esi - 0xa]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
call fcn.0049e180
add esp, 8
inc edi
add esi, 0x10
test eax, eax
je 0x49d4b0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, 0x200
add edi, 0x30
mov dword [esp + 0x20], edi
cmp edi, ecx
jb 0x49d0d0
jmp 0x49d517
mov eax, dword [esp + 0x14]
jmp 0x49d4f5
mov eax, esi
mov ecx, dword [esp + 0x2b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004aa4f4
add esp, 0x2a8
ret