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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, edx
mov ebp, eax
xor ebx, ebx
test edi, edi
je 0x4da847
mov eax, dword [ebp]
cmp eax, 0x210
jg 0x4d9bca
je 0x4d9dfb
cmp eax, 8
jg 0x4d9bac
je 0x4d9fc6
sub eax, 3
je 0x4da7de
sub eax, 2
je 0x4da604
sub eax, 2
je 0x4d9e3c
jmp 0x4da847
sub eax, 0x1d
je 0x4da161
sub eax, 0x5e
je 0x4d9c70
sub eax, 0xad
je 0x4d9c1e
jmp 0x4da847
cmp eax, 0xb013
jg 0x4d9bf5
je 0x4da1a1
sub eax, 0xa100
je 0x4d9c0e
sub eax, 0xf0b
je 0x4d9cba
dec eax
je 0x4da161
jmp 0x4da847
sub eax, 0xb014
je 0x4da432
sub eax, 5
je 0x4d9dda
jmp 0x4da847
mov eax, ebp
mov edx, edi
call fcn.004d90d0
mov ebx, eax
jmp 0x4da847
xor edx, edx
mov eax, edi
call fcn.004d902c
test al, al
je 0x4d9c32
mov bl, 1
jmp 0x4da847
call fcn.0042d934
test al, al
je 0x4da847
mov eax, dword [edi + 0x44]
mov edx, dword [0x43c304]
call fcn.00403a7c
test al, al
je 0x4da847
push 0
push 0
mov eax, dword [edi + 0x44]
call fcn.00446bc4
push eax
mov eax, dword [0x51db20]
mov eax, dword [eax]
call eax
jmp 0x4da847
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4da847
cmp dword [eax + 0x7c], 0
je 0x4da847
mov eax, edi
call fcn.004d855c
test eax, eax
je 0x4da847
mov eax, edi
call fcn.004d855c
mov al, byte [eax + 0x3c]
push eax
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x44]
mov edx, dword [edi + 0x44]
mov edx, dword [edx + 0x7c]
pop ecx
call fcn.004d4c20
jmp 0x4da847
mov eax, edi
call fcn.004d855c
test eax, eax
je 0x4da847
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0xc4]
cmp byte [eax + 0xd], 1
jne 0x4da847
cmp dword [edi + 0x44], 0
je 0x4da847
mov eax, dword [edi + 0x44]
test byte [eax + 0x1c], 8
jne 0x4da847
cmp dword [edi + 0x4c], 0
je 0x4da847
cmp dword [ebp + 4], 0
jne 0x4d9dca
xor edx, edx
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov esi, dword [edi + 0x44]
mov eax, esi
mov edx, dword [0x43c304]
call fcn.00403a7c
test al, al
je 0x4d9dce
mov eax, esi
mov edx, dword [0x43c304]
call fcn.00403aa0
mov ebp, eax
mov eax, ebp
call fcn.004438f4
dec eax
test eax, eax
jl 0x4d9dce
inc eax
mov dword [esp + 4], eax
xor esi, esi
mov edx, esi
mov eax, ebp
call fcn.004438b8
mov edx, dword [0x43c304]
call fcn.00403a7c
test al, al
je 0x4d9d9f
mov edx, esi
mov eax, ebp
call fcn.004438b8
call fcn.00446ec8
test al, al
je 0x4d9d9f
mov edx, esi
mov eax, ebp
call fcn.004438b8
call fcn.00446bc4
xor ecx, ecx
mov edx, 0x21
call fcn.004cf954
jmp 0x4d9dc1
push 0
mov dx, 0x21
xor eax, eax
call fcn.00407958
push eax
mov edx, esi
mov eax, ebp
call fcn.004438b8
mov edx, 0xa100
pop ecx
call fcn.0044157c
inc esi
dec dword [esp + 4]
jne 0x4d9d59
jmp 0x4d9dce
mov byte [edi + 0x28], 0
mov byte [edi + 0x80], 1
jmp 0x4da847
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4da847
cmp byte [eax + 0x57], 0
je 0x4da847
mov eax, edi
call fcn.004d8700
jmp 0x4da847
mov esi, dword [edi + 0x44]
mov eax, esi
mov edx, dword [0x43c304]
call fcn.00403a7c
test al, al
je 0x4da847
mov eax, dword [ebp + 4]
and eax, 0xffff
dec eax
sub eax, 2
jae 0x4da847
cmp word [ebp + 4], 1
jne 0x4da847
mov eax, esi
call fcn.004cacf8
jmp 0x4da847
mov eax, dword [edi + 0x44]
mov edx, dword [0x43c304]
call fcn.00403a7c
test al, al
je 0x4da847
xor edx, edx
mov eax, edi
call fcn.004d902c
test al, al
je 0x4da847
mov eax, dword [edi + 0x44]
mov si, 0xffb8
call fcn.00403aec
test al, al
je 0x4da847
mov eax, dword [edi + 0x44]
cmp byte [eax + 0x1a4], 0
je 0x4da847
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x40], 0x64
jne 0x4d9ebb
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x78], 0x64
je 0x4da847
mov byte [edi + 0x80], 1
mov byte [edi + 0x54], 1
mov eax, dword [edi + 0x50]
cmp eax, 0xff
ja 0x4d9ed7
bt dword [0x51a020], eax
jae 0x4da847
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 8], 1
jle 0x4da847
mov byte [edi + 0x80], 1
mov byte [esp], 0
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov eax, dword [eax + edx*4 + 0x44]
mov edx, dword [edi + 0x44]
cmp eax, dword [edx + 0x70]
je 0x4d9f48
cmp byte [edi + 0xd], 0
jne 0x4d9f48
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov edx, dword [eax + edx*4 + 0x44]
mov eax, dword [edi + 0x44]
call fcn.00440544
mov byte [esp], 1
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov eax, dword [eax + edx*4 + 0x48]
mov edx, dword [edi + 0x44]
mov edx, dword [edx + 0x68]
cmp eax, dword [edx + 0x18]
je 0x4d9f92
cmp byte [edi + 0xc], 0
jne 0x4d9f92
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov edx, dword [eax + edx*4 + 0x48]
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x68]
call fcn.004231a4
mov byte [esp], 1
cmp byte [esp], 0
je 0x4d9faa
push 0xffffffffffffffff
push 0
mov eax, dword [edi + 0x44]
call fcn.00446bc4
push eax
call sub.user32.dll_InvalidateRect
push 0
push 0
push 0x85
mov eax, dword [edi + 0x44]
call fcn.00446bc4
push eax
call sub.user32.dll_SendMessageA
jmp 0x4da847
cmp dword [edi + 0x44], 0
je 0x4da847
xor edx, edx
mov eax, edi
call fcn.004d902c
test al, al
je 0x4da847
mov eax, dword [edi + 0x44]
mov edx, dword [0x43c304]
call fcn.00403a7c
test al, al
je 0x4da847
mov eax, dword [edi + 0x44]
mov si, 0xffb8
call fcn.00403aec
test al, al
je 0x4da847
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x40], 0x64
jne 0x4da03f
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x78], 0x64
je 0x4da847
mov byte [edi + 0x80], 1
mov byte [edi + 0x54], 0
mov byte [esp], 0
mov eax, dword [edi + 0x50]
cmp eax, 0xff
ja 0x4da05f
bt dword [0x51a020], eax
jae 0x4da102
mov eax, edi
call fcn.004d81ec
test al, al
jne 0x4da102
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [edi + 0x44]
cmp eax, dword [edx + 0x70]
je 0x4da0b8
cmp byte [edi + 0xd], 0
jne 0x4da0b8
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov edx, dword [eax + edx*4 + 0xc]
mov eax, dword [edi + 0x44]
call fcn.00440544
mov byte [esp], 1
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov eax, dword [eax + edx*4 + 0x10]
mov edx, dword [edi + 0x44]
mov edx, dword [edx + 0x68]
cmp eax, dword [edx + 0x18]
je 0x4da102
cmp byte [edi + 0xc], 0
jne 0x4da102
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov edx, dword [eax + edx*4 + 0x10]
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x68]
call fcn.004231a4
mov byte [esp], 1
mov eax, dword [edi + 0x44]
cmp byte [eax + 0x57], 0
je 0x4da847
mov eax, dword [edi + 0x50]
cmp eax, 0xff
ja 0x4da120
bt dword [0x51a020], eax
jae 0x4da847
mov byte [edi + 0x80], 1
cmp byte [esp], 0
je 0x4da145
push 0xffffffffffffffff
push 0
mov eax, dword [edi + 0x44]
call fcn.00446bc4
push eax
call sub.user32.dll_InvalidateRect
push 0
push 0
push 0x85
mov eax, dword [edi + 0x44]
call fcn.00446bc4
push eax
call sub.user32.dll_SendMessageA
jmp 0x4da847
mov byte [edi + 0x55], 0
mov byte [edi + 0x54], 0
mov esi, dword [edi + 0x44]
test esi, esi
je 0x4da847
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
jne 0x4da847
cmp dword [edi + 0x24], 0xffffffff
je 0x4da847
lea eax, [edi + 0x24]
call fcn.004989a8
mov dword [edi + 0x24], 0xffffffff
jmp 0x4da847
mov eax, dword [edi + 0x44]
test byte [eax + 0x1c], 0x10
jne 0x4da847
xor edx, edx
mov eax, edi
call fcn.004d902c
test al, al
je 0x4da847
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0xc4]
mov edx, 1
call fcn.0050c8b4
test al, al
jne 0x4da847
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x40], 0x64
jne 0x4da212
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x78], 0x64
je 0x4da847
mov esi, dword [edi + 0x44]
test esi, esi
je 0x4da412
mov eax, esi
mov edx, dword [0x43c304]
call fcn.00403a7c
test al, al
je 0x4da412
cmp dword [0x51efa0], 0
je 0x4da412
mov eax, esi
call fcn.004438f4
dec eax
test eax, eax
jl 0x4da2be
inc eax
mov dword [esp + 4], eax
xor esi, esi
mov edx, esi
mov eax, dword [edi + 0x44]
call fcn.004438b8
mov edx, dword [0x5190a0]
call fcn.00403a7c
test al, al
je 0x4da2b7
mov edx, esi
mov eax, dword [edi + 0x44]
call fcn.004438b8
cmp eax, dword [edi + 0x44]
je 0x4da2b7
mov edx, esi
mov eax, dword [edi + 0x44]
call fcn.004438b8
cmp eax, dword [ebp + 8]
je 0x4da2b7
mov edx, esi
mov eax, dword [edi + 0x44]
call fcn.004438b8
mov eax, dword [eax + 0x198]
cmp byte [eax + 0x55], 0
je 0x4da2b7
push 0
mov edx, esi
mov eax, dword [edi + 0x44]
call fcn.004438b8
xor ecx, ecx
mov edx, 0xb014
call fcn.0044157c
inc esi
dec dword [esp + 4]
jne 0x4da252
mov eax, dword [edi + 0x50]
cmp eax, 0xff
ja 0x4da2cf
bt dword [0x519fe0], eax
jb 0x4da2d5
mov byte [edi + 0x55], 1
mov eax, dword [edi + 0x44]
call fcn.00446bc4
mov edx, eax
mov eax, dword [0x51efa0]
call fcn.0050b138
mov eax, dword [edi + 0x50]
mov edx, eax
cmp edx, 0xff
ja 0x4da2fd
bt dword [0x51a000], edx
jb 0x4da312
add eax, 0xffffffa4
sub eax, 3
jb 0x4da312
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004d73f0
mov eax, dword [edi + 0x50]
cmp eax, 0xff
ja 0x4da323
bt dword [0x51a020], eax
jae 0x4da847
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 8], 1
jle 0x4da847
mov byte [edi + 0x80], 1
mov byte [esp], 0
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov eax, dword [eax + edx*4 + 0x44]
mov edx, dword [edi + 0x44]
cmp eax, dword [edx + 0x70]
je 0x4da394
cmp byte [edi + 0xd], 0
jne 0x4da394
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov edx, dword [eax + edx*4 + 0x44]
mov eax, dword [edi + 0x44]
call fcn.00440544
mov byte [esp], 1
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov eax, dword [eax + edx*4 + 0x48]
mov edx, dword [edi + 0x44]
mov edx, dword [edx + 0x68]
cmp eax, dword [edx + 0x18]
je 0x4da3de
cmp byte [edi + 0xc], 0
jne 0x4da3de
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov edx, dword [eax + edx*4 + 0x48]
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x68]
call fcn.004231a4
mov byte [esp], 1
cmp byte [esp], 0
je 0x4da3f6
push 0xffffffffffffffff
push 0
mov eax, dword [edi + 0x44]
call fcn.00446bc4
push eax
call sub.user32.dll_InvalidateRect
push 0
push 0
push 0x85
mov eax, dword [edi + 0x44]
call fcn.00446bc4
push eax
call sub.user32.dll_SendMessageA
jmp 0x4da847
mov eax, dword [edi + 0x50]
cmp eax, 0xff
ja 0x4da423
bt dword [0x519fe0], eax
jb 0x4da847
mov byte [edi + 0x55], 1
jmp 0x4da847
mov eax, dword [edi + 0x44]
test byte [eax + 0x1c], 0x10
jne 0x4da847
xor edx, edx
mov eax, edi
call fcn.004d902c
test al, al
je 0x4da847
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0xc4]
mov edx, 1
call fcn.0050c8b4
test al, al
jne 0x4da847
mov eax, dword [edi + 0x50]
cmp eax, 0xff
ja 0x4da480
bt dword [0x519fe0], eax
jb 0x4da486
mov byte [edi + 0x55], 0
mov eax, dword [edi + 0x50]
mov edx, eax
cmp edx, 0xff
ja 0x4da49a
bt dword [0x51a000], edx
jb 0x4da4b9
add eax, 0xffffffa4
sub eax, 3
jb 0x4da4b9
cmp dword [edi + 0x24], 0xffffffff
je 0x4da4b9
lea eax, [edi + 0x24]
call fcn.004989a8
mov dword [edi + 0x24], 0xffffffff
mov byte [esp], 0
mov eax, dword [edi + 0x50]
cmp eax, 0xff
ja 0x4da4ce
bt dword [0x51a020], eax
jae 0x4da5a5
mov eax, edi
call fcn.004d81ec
test al, al
jne 0x4da5a5
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x40], 0x64
jne 0x4da517
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x78], 0x64
je 0x4da5a5
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [edi + 0x44]
cmp eax, dword [edx + 0x70]
je 0x4da55b
cmp byte [edi + 0xd], 0
jne 0x4da55b
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov edx, dword [eax + edx*4 + 0xc]
mov eax, dword [edi + 0x44]
call fcn.00440544
mov byte [esp], 1
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov eax, dword [eax + edx*4 + 0x10]
mov edx, dword [edi + 0x44]
mov edx, dword [edx + 0x68]
cmp eax, dword [edx + 0x18]
je 0x4da5a5
cmp byte [edi + 0xc], 0
jne 0x4da5a5
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
mov edx, dword [eax + edx*4 + 0x10]
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 0x68]
call fcn.004231a4
mov byte [esp], 1
mov eax, dword [edi + 0x44]
cmp byte [eax + 0x57], 0
je 0x4da847
mov eax, dword [edi + 0x50]
cmp eax, 0xff
ja 0x4da5c3
bt dword [0x51a020], eax
jae 0x4da847
mov byte [edi + 0x80], 1
cmp byte [esp], 0
je 0x4da5e8
push 0xffffffffffffffff
push 0
mov eax, dword [edi + 0x44]
call fcn.00446bc4
push eax
call sub.user32.dll_InvalidateRect
push 0
push 0
push 0x85
mov eax, dword [edi + 0x44]
call fcn.00446bc4
push eax
call sub.user32.dll_SendMessageA
jmp 0x4da847
xor edx, edx
mov eax, edi
call fcn.004d902c
test al, al
je 0x4da847
mov byte [edi + 0x80], 1
mov eax, dword [edi + 0x14]
mov al, byte [eax + 8]
sub al, 1
jne 0x4da62d
mov eax, edi
call fcn.004d7a34
mov esi, dword [edi + 0x44]
mov eax, esi
mov edx, dword [0x5190a0]
call fcn.00403a7c
test al, al
je 0x4da716
xor edx, edx
mov eax, edi
call fcn.004d902c
test al, al
je 0x4da7c7
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
call fcn.004059b4
cmp eax, dword [edi + 0x34]
jle 0x4da7c7
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x24], 0
jle 0x4da7c7
mov eax, dword [edi + 0x44]
call fcn.004bc944
test eax, eax
je 0x4da7c7
mov eax, dword [edi + 0x44]
call fcn.004bc944
call fcn.004438f4
dec eax
test eax, eax
jl 0x4da7c7
inc eax
mov dword [esp + 4], eax
xor esi, esi
mov eax, dword [edi + 0x44]
call fcn.004bc944
call fcn.004438f4
cmp esi, eax
jge 0x4da70a
mov eax, dword [edi + 0x44]
call fcn.004bc944
mov edx, esi
call fcn.004438b8
test byte [eax + 0x1c], 8
jne 0x4da70a
push 0
mov dx, 0x14
mov ax, 1
call fcn.00407958
push eax
mov eax, dword [edi + 0x44]
call fcn.004bc944
mov edx, esi
call fcn.004438b8
mov edx, 0xa100
pop ecx
call fcn.0044157c
inc esi
dec dword [esp + 4]
jne 0x4da6ba
jmp 0x4da7c7
mov eax, esi
mov edx, dword [0x43c304]
call fcn.00403a7c
test al, al
je 0x4da7c7
xor edx, edx
mov eax, edi
call fcn.004d902c
test al, al
je 0x4da7c7
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
call fcn.004059b4
cmp eax, dword [edi + 0x34]
jle 0x4da7c7
mov eax, edi
call fcn.004d855c
mov eax, dword [eax + 0x7894]
imul edx, dword [edi + 0x34], 0x4b
cmp dword [eax + edx*4 + 0x24], 0
jle 0x4da7c7
mov eax, dword [edi + 0x44]
call fcn.004438f4
dec eax
test eax, eax
jl 0x4da7c7
inc eax
mov dword [esp + 4], eax
xor esi, esi
mov eax, dword [edi + 0x44]
call fcn.004438f4
cmp esi, eax
jge 0x4da7c0
mov edx, esi
mov eax, dword [edi + 0x44]
call fcn.004438b8
test byte [eax + 0x1c], 8
jne 0x4da7c0
push 0
mov dx, 0x14
mov ax, 1
call fcn.00407958
push eax
mov edx, esi
mov eax, dword [edi + 0x44]
call fcn.004438b8
mov edx, 0xa100
pop ecx
call fcn.0044157c
inc esi
dec dword [esp + 4]
jne 0x4da77f
cmp dword [edi + 0x24], 0xffffffff
je 0x4da847
lea eax, [edi + 0x24]
call fcn.004989a8
mov dword [edi + 0x24], 0xffffffff
jmp 0x4da847
xor edx, edx
mov eax, edi
call fcn.004d902c
test al, al
je 0x4da847
mov eax, dword [edi + 0x14]
mov al, byte [eax + 8]
sub al, 1
jne 0x4da7fc
mov eax, edi
call fcn.004d7a34
mov eax, edi
call fcn.004d8c44
test al, al
je 0x4da832
mov byte [edi + 0x80], 1
mov esi, dword [edi + 0x44]
test esi, esi
je 0x4da832
push 0
mov dx, 0x14
mov ax, 1
call fcn.00407958
mov ecx, eax
mov edx, 0xa100
mov eax, esi
call fcn.0044157c
cmp dword [edi + 0x24], 0xffffffff
je 0x4da847
lea eax, [edi + 0x24]
call fcn.004989a8
mov dword [edi + 0x24], 0xffffffff
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret